mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Private profile setup and a deploy bugfix
This commit is contained in:
parent
0c10f2f26e
commit
dca0ac1e57
5 changed files with 11 additions and 6 deletions
|
|
@ -6,5 +6,9 @@ let
|
|||
};
|
||||
in {
|
||||
|
||||
imports = lib.attrValues homeModules ++ [ ../modules/home ];
|
||||
imports = lib.attrValues homeModules ++ [
|
||||
../modules/home
|
||||
./private/profile/home
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
./torrenting.nix
|
||||
];
|
||||
|
||||
deploy.profiles = [ "gui" "sway" "kat" ];
|
||||
deploy.profiles = [ "gui" "sway" "kat" "private" ];
|
||||
deploy.ssh.host = "192.168.1.135";
|
||||
|
||||
# graphics tablet
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [ ./hardware.nix ../../services/zfs.nix ];
|
||||
|
||||
deploy.profiles = [ "gui" "sway" "kat" "laptop" ];
|
||||
deploy.profiles = [ "gui" "sway" "kat" "laptop" "private" ];
|
||||
deploy.ssh.host = "192.168.1.92";
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ let
|
|||
};
|
||||
in {
|
||||
|
||||
imports = lib.attrValues nixosModules;
|
||||
imports = lib.attrValues nixosModules ++ [ ./private/profile/nixos ];
|
||||
|
||||
options.home-manager.users = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.submoduleWith {
|
||||
|
|
|
|||
|
|
@ -8,10 +8,11 @@ let
|
|||
ssh $NIX_SSHOPTS root@${cfg.ssh.host} "mkdir -p ${toString file.out.dir}
|
||||
cat > ${file.path}
|
||||
chmod ${file.mode} ${file.path}
|
||||
chown ${file.owner}:${file.group} ${file.path}" << 'EOF'
|
||||
chown ${file.owner}:${file.group} ${file.path}"'' + (if file.source != null then "< ${toString file.source}\n" else ''
|
||||
<<'EOF'
|
||||
${file.text}
|
||||
EOF
|
||||
'') (attrValues config.secrets.files);
|
||||
'')) (attrValues config.secrets.files);
|
||||
in {
|
||||
options = {
|
||||
deploy = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue