mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: added user2 and refactored to accommodate
This commit is contained in:
parent
c169f84dcc
commit
9cdcf4fec4
97 changed files with 1473 additions and 1052 deletions
|
@ -1,13 +0,0 @@
|
|||
{ flake, ... }:
|
||||
let
|
||||
inherit (flake)
|
||||
self
|
||||
;
|
||||
|
||||
moduleImports = map (module: self.homeModules.${module}) [
|
||||
"desktop"
|
||||
];
|
||||
in
|
||||
{
|
||||
imports = moduleImports;
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{ flake, ... }:
|
||||
let
|
||||
inherit (flake)
|
||||
self
|
||||
;
|
||||
|
||||
moduleImports = map (module: self.homeModules.${module}) [
|
||||
"desktop"
|
||||
];
|
||||
in
|
||||
{
|
||||
imports = moduleImports;
|
||||
}
|
|
@ -3,18 +3,15 @@
|
|||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(flake.config.people)
|
||||
user1
|
||||
;
|
||||
inherit
|
||||
(flake.config.people.users.${user1})
|
||||
name
|
||||
;
|
||||
|
||||
}:
|
||||
let
|
||||
inherit (flake) self;
|
||||
inherit (flake.config.people) user1;
|
||||
inherit (flake.config.machines) devices;
|
||||
inherit (flake.config.people.users.${user1}) name;
|
||||
hostname = config.networking.hostName;
|
||||
in {
|
||||
in
|
||||
{
|
||||
users = {
|
||||
users.${user1} = {
|
||||
description = name;
|
||||
|
@ -41,15 +38,17 @@ in {
|
|||
source = ./files/justfile;
|
||||
};
|
||||
};
|
||||
sessionVariables = {};
|
||||
sessionVariables = { };
|
||||
};
|
||||
imports = [
|
||||
{
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
}
|
||||
(
|
||||
import ./configs/${hostname}.nix {flake = flake;}
|
||||
)
|
||||
{
|
||||
imports = [
|
||||
self.homeModules."${devices.${hostname}.name}-${user1}"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue