Home Manager : Simplify args merge.

This commit is contained in:
Dmitry Voronin 2024-04-10 14:50:17 +03:00
parent 7e28f68444
commit aca52517b9
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 9 additions and 27 deletions

View file

@ -1,14 +1,8 @@
{ const, username, homeDir, util, style, pkgs, setting, key, ... }: {
{ const, util, style, pkgs, setting, key, ... } @args: {
imports = [
(import ./Default.nix {
(import ./Default.nix (args // {
username = "dasha";
homeDir = "/home/dasha";
const = const;
key = key;
pkgs = pkgs;
setting = setting;
style = style;
util = util;
})
}))
];
}

View file

@ -1,14 +1,8 @@
{ const, username, homeDir, util, style, pkgs, setting, key, ... }: {
{ const, util, style, pkgs, setting, key, ... } @args: {
imports = [
(import ./Default.nix {
(import ./Default.nix (args // {
username = "root";
homeDir = "/root";
const = const;
key = key;
pkgs = pkgs;
setting = setting;
style = style;
util = util;
})
}))
];
}

View file

@ -1,14 +1,8 @@
{ const, username, homeDir, util, style, pkgs, setting, key, ... }: {
{ const, util, style, pkgs, setting, key, ... } @args: {
imports = [
(import ./Default.nix {
(import ./Default.nix (args // {
username = "voronind";
homeDir = "/home/voronind";
const = const;
key = key;
pkgs = pkgs;
setting = setting;
style = style;
util = util;
})
}))
];
}