Compare commits
No commits in common. "5f7f2e8baed49d717da9ceba35f16ce6fa9ecf9a" and "b1ddb0de48354ccb0e12185f250cb6881d098d16" have entirely different histories.
5f7f2e8bae
...
b1ddb0de48
5 changed files with 9 additions and 14 deletions
|
@ -5,20 +5,17 @@ let
|
||||||
|
|
||||||
mkUsersOption = programs: osConfig: mkOption {
|
mkUsersOption = programs: osConfig: mkOption {
|
||||||
type = types.attrsOf (types.submodule (
|
type = types.attrsOf (types.submodule (
|
||||||
{ config, ... }: {
|
{ ... }: {
|
||||||
options = {
|
options = {
|
||||||
inherit programs;
|
inherit programs;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
programs = lib.attrsets.concatMapAttrs
|
programs = builtins.mapAttrs
|
||||||
(
|
(
|
||||||
name: program:
|
name: config: {
|
||||||
if (builtins.elem name (builtins.attrNames config.programs)) then {
|
enable = mkDefault config.enable;
|
||||||
${name} = {
|
}
|
||||||
enable = mkDefault program.enable;
|
|
||||||
};
|
|
||||||
} else { }
|
|
||||||
)
|
)
|
||||||
osConfig.programs;
|
osConfig.programs;
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,8 +5,6 @@ in {
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
valhalla = {
|
valhalla = {
|
||||||
boot.label = "Arch";
|
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
diskSetup.devices = {
|
diskSetup.devices = {
|
||||||
OS = {
|
OS = {
|
||||||
|
|
|
@ -5,8 +5,8 @@ begin
|
||||||
inherit "$dir/../../../Common/Software/systemd-networkd/main.fish"
|
inherit "$dir/../../../Common/Software/systemd-networkd/main.fish"
|
||||||
|
|
||||||
function configureSW -V dir
|
function configureSW -V dir
|
||||||
sudo systemctl enable systemd-networkd
|
systemctl enable systemd-networkd
|
||||||
sudo systemctl enable systemd-resolved
|
systemctl enable systemd-resolved
|
||||||
configureSWBase $argv
|
configureSWBase $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ function runSetup
|
||||||
end
|
end
|
||||||
end) \
|
end) \
|
||||||
(string escape $script) "&&")) \
|
(string escape $script) "&&")) \
|
||||||
"rm $tmp ||" \
|
"rm $tmp ||"
|
||||||
"mv $tmp $profile"
|
"mv $tmp $profile"
|
||||||
end | runChroot "$mountDir" tee "$profile" >/dev/null
|
end | runChroot "$mountDir" tee "$profile" >/dev/null
|
||||||
end
|
end
|
||||||
|
|
|
@ -84,7 +84,7 @@ function runSetupUserAction -V dir
|
||||||
disposeAction
|
disposeAction
|
||||||
rm "$sudoConfig"
|
rm "$sudoConfig"
|
||||||
userdel -rf "$name"
|
userdel -rf "$name"
|
||||||
$success
|
success
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue