progress?
This commit is contained in:
parent
7d6dd5e9e4
commit
86090fa40e
4 changed files with 28 additions and 9 deletions
13
modules/factory/users/user.nix
Normal file
13
modules/factory/users/user.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config.flake.factory.user = username: {
|
||||||
|
nixos."${username}" = {pkgs, ...}: {
|
||||||
|
users.users."${username}" = {
|
||||||
|
isNormalUser = true;
|
||||||
|
name = "${username}";
|
||||||
|
};
|
||||||
|
extraGroups = ["wheel"];
|
||||||
|
|
||||||
|
shell = pkgs.nushell;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
{inputs, ...}: {
|
|
||||||
flake.nixosModules.firefoxHelix = {pkgs, ...}: {
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
helix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
6
modules/nix/flake-parts/factory.nix
Normal file
6
modules/nix/flake-parts/factory.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{lib, ...}: {
|
||||||
|
options.flake.factory = lib.mkOption {
|
||||||
|
type = lib.types.attrsof lib.types.unspecified;
|
||||||
|
default = {};
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/users/benDesktop/benDesktop.nix
Normal file
9
modules/users/benDesktop/benDesktop.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
self,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
flake.modules = lib.mkMerge [
|
||||||
|
(self.factory.user "benDesktop")
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue