-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnixos.nix
72 lines (68 loc) · 1.94 KB
/
nixos.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: { inputs, nixpkgs, home-manager, system, user }:
nixpkgs.lib.nixosSystem rec {
inherit system;
# NixOS System level modules
modules = [
./hardware/${name}.nix
./modules/boot/${name}.nix
./modules/nixpkgs.nix
./modules/misc.nix
./modules/environment.nix
./modules/fonts.nix
./modules/networking.nix
./modules/nix.nix
./modules/onepassword.nix
./modules/users.nix
./modules/xserver-${name}.nix
./modules/zsh.nix
# home-manager
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.poisonphang = {
imports = [
./home-modules/bat.nix
./home-modules/direnv.nix
./home-modules/feh.nix
./home-modules/flameshot.nix
./home-modules/git.nix
./home-modules/gpg.nix
./home-modules/gtk.nix
./home-modules/helix.nix
./home-modules/kitty.nix
./home-modules/lazygit.nix
./home-modules/nixos-misc.nix
./home-modules/packages.nix
./home-modules/rofi.nix
./home-modules/starship.nix
./home-modules/zellij.nix
./home-modules/zoxide.nix
./home-modules/zsh.nix
./home-modules/ghostty.nix
];
};
# Arguments exposed to each home-module
extraSpecialArgs = {
currentSystemName = name;
currentSystem = system;
pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system; config.allowUnfree = true;
};
inherit inputs;
};
};
}
# Arguments exposed to each module
{
config._module.args = {
currentSystemName = name;
currentSystem = system;
pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system; config.allowUnfree = true;
};
};
}
];
}