shell.nix improvements
This commit is contained in:
parent
aaccab5823
commit
615feaf22e
2 changed files with 33 additions and 46 deletions
|
@ -55,16 +55,16 @@
|
|||
|
||||
# partitions
|
||||
# ----------
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/77a3e839-5a80-4777-93c3-31be7f0cb99d";
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/77a3e839-5a80-4777-93c3-31be7f0cb99d";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/FBFB-8DA5";
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/FBFB-8DA5";
|
||||
fsType = "vfat";
|
||||
};
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/disk/by-uuid/192a8bd6-e5f7-4e66-b69e-f3da701da343";
|
||||
fileSystems."/home" = {
|
||||
device = "/dev/disk/by-uuid/192a8bd6-e5f7-4e66-b69e-f3da701da343";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
|
|
49
shell.nix
49
shell.nix
|
@ -114,6 +114,7 @@ let
|
|||
ref = "76260ad60cd99d40ab25df1400b0663d48e736db";
|
||||
};
|
||||
|
||||
# enable only on workhorse
|
||||
# wetten.file = toString ./wetten;
|
||||
|
||||
};
|
||||
|
@ -126,40 +127,26 @@ let
|
|||
{ host ? (hostPattern name), target ? "/var/src/", user ? "root"
|
||||
, commandPrefix ? "deploy", enableSwitch ? true }:
|
||||
with ops;
|
||||
jobs "${commandPrefix}-${name}" "${user}@${host}${target}" (
|
||||
populateCommands
|
||||
++ (if enableSwitch then [ switch ] else [ ]));
|
||||
jobs "${commandPrefix}-${name}" "${user}@${host}${target}"
|
||||
(populateCommands ++ (if enableSwitch then [ switch ] else [ ]));
|
||||
|
||||
#serverDeployment = name:
|
||||
# { host ? (hostPattern name), target ? "/var/src/", user ? "root"
|
||||
# , commandPrefix ? "deploy", enableSwitch ? true }:
|
||||
# with ops;
|
||||
# jobs "${commandPrefix}-${name}" "${user}@${host}${target}" ([
|
||||
# ] ++ (if enableSwitch then [ switch ] else [ ]));
|
||||
serverDeployment = name: deployment [
|
||||
(ops.populate source.nixPkgs)
|
||||
(ops.populate source.modules)
|
||||
(ops.populate (source.secrets name))
|
||||
(ops.populate (source.system name))
|
||||
serverDeployment = name:
|
||||
with ops;
|
||||
deployment [
|
||||
(populate source.nixPkgs)
|
||||
(populate source.modules)
|
||||
(populate (source.secrets name))
|
||||
(populate (source.system name))
|
||||
] name;
|
||||
|
||||
#desktopDeployment = name:
|
||||
# { host ? (hostPattern name), target ? "/var/src/", user ? "root"
|
||||
# , commandPrefix ? "deploy", enableSwitch ? true }:
|
||||
# with ops;
|
||||
# jobs "${commandPrefix}-${name}" "${user}@${host}${target}" ([
|
||||
# (populate source.nixPkgs)
|
||||
# (populate source.modules)
|
||||
# (populate (source.secrets name))
|
||||
# (populate (source.system name))
|
||||
# (populate source.desktopSecrets)
|
||||
# ] ++ (if enableSwitch then [ switch ] else [ ]));
|
||||
desktopDeployment = name: deployment [
|
||||
(ops.populate source.nixPkgs)
|
||||
(ops.populate source.modules)
|
||||
(ops.populate (source.secrets name))
|
||||
(ops.populate (source.system name))
|
||||
(ops.populate source.desktopSecrets)
|
||||
desktopDeployment = name:
|
||||
with ops;
|
||||
deployment [
|
||||
(populate source.nixPkgs)
|
||||
(populate source.modules)
|
||||
(populate (source.secrets name))
|
||||
(populate (source.system name))
|
||||
(populate source.desktopSecrets)
|
||||
] name;
|
||||
|
||||
cleanupNix = name:
|
||||
|
|
Loading…
Reference in a new issue