refactor
This commit is contained in:
parent
0b97b828be
commit
f185ce3c92
3 changed files with 96 additions and 43 deletions
28
system/base.nix
Normal file
28
system/base.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{pkgs, ...}: {
|
||||
boot.tmp.useTmpfs = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
age
|
||||
compsize
|
||||
duf
|
||||
eza
|
||||
file
|
||||
htop
|
||||
btop
|
||||
jq
|
||||
yq
|
||||
du-dust
|
||||
ranger
|
||||
ripgrep
|
||||
sops
|
||||
wget
|
||||
wireguard-tools
|
||||
zip
|
||||
];
|
||||
|
||||
environment.pathsToLink = ["/share/zsh"];
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
|
@ -1,21 +1,51 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./audio.nix
|
||||
./boot.nix
|
||||
./env.nix
|
||||
./networking.nix
|
||||
./persistence.nix
|
||||
./bluetooth.nix
|
||||
./btrfs.nix
|
||||
./fonts.nix
|
||||
./nix.nix
|
||||
./users.nix
|
||||
./ssh.nix
|
||||
./steam.nix
|
||||
./stylix.nix
|
||||
./wayland.nix
|
||||
./zsh.nix
|
||||
];
|
||||
{
|
||||
conf,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
...
|
||||
} @ inputs: let
|
||||
inherit (conf) system;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
pkgs = import nixpkgs {
|
||||
inherit (conf) system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
specialArgs = inputs;
|
||||
in {
|
||||
build = nixpkgs.lib.nixosSystem {
|
||||
inherit system pkgs specialArgs;
|
||||
|
||||
modules = [
|
||||
./base.nix
|
||||
|
||||
conf.extraConfig
|
||||
conf.hardware-configuration
|
||||
|
||||
./audio.nix
|
||||
./boot.nix
|
||||
./env.nix
|
||||
./networking.nix
|
||||
./persistence.nix
|
||||
./bluetooth.nix
|
||||
./btrfs.nix
|
||||
./fonts.nix
|
||||
./nix.nix
|
||||
./users.nix
|
||||
./ssh.nix
|
||||
./steam.nix
|
||||
./stylix.nix
|
||||
./wayland.nix
|
||||
./zsh.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
({config, ...}: {
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = specialArgs // {system-config = config;};
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue