hm preset work
This commit is contained in:
parent
77822ebe33
commit
b80c457dad
|
@ -9,53 +9,37 @@ in {
|
|||
users.root
|
||||
users.chaos
|
||||
|
||||
presets.home-manager.root-base
|
||||
|
||||
(with tree.presets.nixos; [
|
||||
desktopGnome
|
||||
desktopGui
|
||||
laptop
|
||||
gaming
|
||||
encryptedUSB
|
||||
])
|
||||
|
||||
(with tree.profiles.nixos; [
|
||||
cross.arm64
|
||||
remoteBuilders
|
||||
])
|
||||
|
||||
gaming.steam
|
||||
(with presets.home-manager.by-user; [
|
||||
root.base
|
||||
chaos.guiDevDesktop
|
||||
chaos.gaming
|
||||
])
|
||||
|
||||
./secrets.nix
|
||||
./hardware.nix
|
||||
]);
|
||||
|
||||
home-manager.users.root.home.stateVersion = "24.05";
|
||||
|
||||
home-manager.users.chaos = {
|
||||
imports = with tree.profiles.home-manager; [
|
||||
base
|
||||
dev.all
|
||||
reversing
|
||||
homeFolders
|
||||
musicLibrary
|
||||
|
||||
programming.editors.nano
|
||||
programming.editors.vscode
|
||||
programming.languages.rust
|
||||
programming.languages.nix
|
||||
|
||||
gaming.platforms.steam
|
||||
gaming.platforms.lutris
|
||||
];
|
||||
home.stateVersion = "24.05";
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowPing = true;
|
||||
};
|
||||
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.allowPing = true;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [8088];
|
||||
|
||||
networking.hostName = "lappy-t495";
|
||||
time.timeZone = "Europe/London";
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
home-manager.users.root.home.stateVersion = "24.05";
|
||||
home-manager.users.chaos.home.stateVersion = "24.05";
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
nixpkgs-unstable,
|
||||
...
|
||||
} @ inputs: let
|
||||
inherit (nixpkgs-unstable.lib) forEach;
|
||||
|
||||
mkTree = inputs.tree-input.tree;
|
||||
metaTree = mkTree ((import ../treeConfig.nix {}) // {inherit inputs;});
|
||||
|
|
5
presets/home-manager/base.nix
Normal file
5
presets/home-manager/base.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.profiles.home-manager; [
|
||||
base
|
||||
];
|
||||
}
|
7
presets/home-manager/by-user/chaos/gaming.nix
Normal file
7
presets/home-manager/by-user/chaos/gaming.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{tree, ...}: {
|
||||
home-manager.users.chaos = {
|
||||
imports = with tree.presets.home-manager; [
|
||||
gaming
|
||||
];
|
||||
};
|
||||
}
|
7
presets/home-manager/by-user/chaos/guiDesktop.nix
Normal file
7
presets/home-manager/by-user/chaos/guiDesktop.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{tree, ...}: {
|
||||
home-manager.users.chaos = {
|
||||
imports = with tree.presets.home-manager; [
|
||||
guiDesktop
|
||||
];
|
||||
};
|
||||
}
|
20
presets/home-manager/by-user/chaos/guiDevDesktop.nix
Normal file
20
presets/home-manager/by-user/chaos/guiDevDesktop.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
tree,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.lists) flatten;
|
||||
in {
|
||||
home-manager.users.chaos = {
|
||||
imports = flatten (with tree; [
|
||||
(with presets.home-manager; [
|
||||
guiDesktop
|
||||
devGui
|
||||
])
|
||||
|
||||
(with profiles.home-manager; [
|
||||
reversing
|
||||
])
|
||||
]);
|
||||
};
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{tree, ...}: {
|
||||
home-manager.users.root = {
|
||||
imports = with tree.profiles.home-manager; [
|
||||
imports = with tree.presets.home-manager; [
|
||||
base
|
||||
];
|
||||
};
|
7
presets/home-manager/by-user/root/minimalServer.nix
Normal file
7
presets/home-manager/by-user/root/minimalServer.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{tree, ...}: {
|
||||
home-manager.users.root = {
|
||||
imports = with tree.presets.home-manager; [
|
||||
minimalServer
|
||||
];
|
||||
};
|
||||
}
|
9
presets/home-manager/devBase.nix
Normal file
9
presets/home-manager/devBase.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.profiles.home-manager; [
|
||||
dev.all
|
||||
|
||||
programming.editors.nano
|
||||
programming.languages.rust
|
||||
programming.languages.nix
|
||||
];
|
||||
}
|
17
presets/home-manager/devGui.nix
Normal file
17
presets/home-manager/devGui.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
lib,
|
||||
tree,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.lists) flatten;
|
||||
in {
|
||||
imports = flatten (with tree; [
|
||||
(with presets.home-manager; [
|
||||
devBase
|
||||
])
|
||||
|
||||
(with profiles.home-manager; [
|
||||
programming.editors.vscode
|
||||
])
|
||||
]);
|
||||
}
|
6
presets/home-manager/gaming.nix
Normal file
6
presets/home-manager/gaming.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.profiles.home-manager; [
|
||||
gaming.steam
|
||||
gaming.lutris
|
||||
];
|
||||
}
|
30
presets/home-manager/guiDesktop.nix
Normal file
30
presets/home-manager/guiDesktop.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.profiles.home-manager; [
|
||||
gui.base
|
||||
gui.environments.gnome
|
||||
|
||||
homeFolders
|
||||
musicLibrary
|
||||
|
||||
apps.fileRoller
|
||||
apps.nautilus
|
||||
apps.pavucontrol
|
||||
apps.mpv
|
||||
|
||||
apps.firefox
|
||||
apps.telegram
|
||||
apps.thunderbird
|
||||
apps.toot-cli
|
||||
|
||||
apps.obsidian
|
||||
apps.libreoffice
|
||||
|
||||
apps.nicotine-plus
|
||||
apps.musicutil
|
||||
|
||||
apps.mullvad
|
||||
apps.aria2
|
||||
apps.rclone
|
||||
apps.restic
|
||||
];
|
||||
}
|
7
presets/home-manager/minimalServer.nix
Normal file
7
presets/home-manager/minimalServer.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.profiles.home-manager; [
|
||||
base.zsh
|
||||
base.age-encryption
|
||||
dev.small
|
||||
];
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{tree, ...}: {
|
||||
home-manager.users.root = {
|
||||
imports = with tree.profiles.home-manager; [
|
||||
base.zsh
|
||||
base.age-encryption
|
||||
dev.small
|
||||
];
|
||||
};
|
||||
}
|
|
@ -8,7 +8,7 @@
|
|||
profiles.nixos.base
|
||||
|
||||
users.root
|
||||
presets.home-manager.root-minimalServer
|
||||
presets.home-manager.by-user.root.minimalServer
|
||||
|
||||
modules.nixos.rcloneServe
|
||||
modules.nixos.rcloneSync
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.profiles.nixos; [
|
||||
wifiHardware
|
||||
|
||||
sound.base
|
||||
sound.pipewire
|
||||
gui.base
|
||||
|
||||
mullvad
|
||||
];
|
||||
|
||||
home-manager.users.chaos = {
|
||||
imports = with tree.profiles.home-manager; [
|
||||
gui.base
|
||||
|
||||
apps.fileRoller
|
||||
apps.nautilus
|
||||
apps.pavucontrol
|
||||
apps.mpv
|
||||
|
||||
apps.firefox
|
||||
apps.telegram
|
||||
apps.thunderbird
|
||||
apps.toot-cli
|
||||
|
||||
apps.obsidian
|
||||
apps.libreoffice
|
||||
|
||||
apps.nicotine-plus
|
||||
apps.musicutil
|
||||
|
||||
apps.mullvad
|
||||
apps.aria2
|
||||
apps.rclone
|
||||
apps.restic
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree; [
|
||||
presets.nixos.desktopBase
|
||||
|
||||
profiles.nixos.gui.environments.gnome
|
||||
];
|
||||
home-manager.users.chaos = {
|
||||
imports = with tree; [
|
||||
profiles.home-manager.gui.environments.gnome
|
||||
];
|
||||
};
|
||||
}
|
25
presets/nixos/desktopGui.nix
Normal file
25
presets/nixos/desktopGui.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
lib,
|
||||
tree,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.lists) flatten;
|
||||
in {
|
||||
imports = flatten (with tree; [
|
||||
(with profiles.nixos; [
|
||||
gui.base
|
||||
gui.environments.gnome
|
||||
|
||||
sound.base
|
||||
sound.pipewire
|
||||
|
||||
wifiHardware
|
||||
|
||||
mullvad
|
||||
])
|
||||
|
||||
(with presets.home-manager; [
|
||||
by-user.chaos.guiDesktop
|
||||
])
|
||||
]);
|
||||
}
|
5
presets/nixos/gaming.nix
Normal file
5
presets/nixos/gaming.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.profiles.nixos; [
|
||||
gaming.steam
|
||||
];
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree; [
|
||||
users.root
|
||||
presets.home-manager.root-minimalServer
|
||||
presets.home-manager.by-user.root.minimalServer
|
||||
|
||||
profiles.nixos.sshd
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{pkgs, ...}: {home.packages = with pkgs; [melonDS];}
|
|
@ -1 +0,0 @@
|
|||
{pkgs, ...}: {home.packages = with pkgs; [multimc jdk17];}
|
|
@ -1 +0,0 @@
|
|||
{pkgs, ...}: {home.packages = with pkgs; [osu-lazer];}
|
9
profiles/home-manager/gaming/lutris.nix
Normal file
9
profiles/home-manager/gaming/lutris.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
(lutris.override {
|
||||
extraPkgs = pkgs: with pkgs; [gamescope];
|
||||
})
|
||||
gamescope
|
||||
wineWowPackages.staging
|
||||
];
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [(lutris.override {extraPkgs = pkgs: with pkgs; [gamescope];}) wineWowPackages.staging];
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
{pkgs, ...}: {home.packages = with pkgs; [steam];}
|
5
profiles/home-manager/gaming/steam.nix
Normal file
5
profiles/home-manager/gaming/steam.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
steam
|
||||
];
|
||||
}
|
|
@ -19,7 +19,7 @@ in {
|
|||
};
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
config = {
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
|
|
Loading…
Reference in a new issue