feat: restructure system config
Create common system config and derive common server & desktop configs from it.
This commit is contained in:
parent
4af1b35392
commit
8dcece0836
|
@ -6,7 +6,7 @@
|
||||||
./hardware/gpu-amd.nix
|
./hardware/gpu-amd.nix
|
||||||
./hardware/steam.nix
|
./hardware/steam.nix
|
||||||
./hardware/ledger.nix
|
./hardware/ledger.nix
|
||||||
./system
|
./system/desktop.nix
|
||||||
./system/gaming.nix
|
./system/gaming.nix
|
||||||
./desktop
|
./desktop
|
||||||
./virtualisation/libvirt.nix
|
./virtualisation/libvirt.nix
|
||||||
|
|
5
rpi4.nix
5
rpi4.nix
|
@ -12,10 +12,7 @@ in with builtins; {
|
||||||
imports = [
|
imports = [
|
||||||
# ./hardware/base.nix
|
# ./hardware/base.nix
|
||||||
./hardware/gpu-rpi4.nix
|
./hardware/gpu-rpi4.nix
|
||||||
# ./system
|
./system/server.nix
|
||||||
./system/nix.nix
|
|
||||||
./system/i18n.nix
|
|
||||||
./system/networking.nix
|
|
||||||
./modules/emailNotify.nix
|
./modules/emailNotify.nix
|
||||||
./services/mail.nix
|
./services/mail.nix
|
||||||
./services/restic/rpi4.nix
|
./services/restic/rpi4.nix
|
||||||
|
|
7
system/common.nix
Normal file
7
system/common.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ./i18n.nix ./nix.nix ./networking.nix ./hardened.nix ];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [ wget curl openssl neovim ];
|
||||||
|
}
|
8
system/desktop.nix
Normal file
8
system/desktop.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ./common.nix ./fonts.nix ./sound.nix ./vpn.nix ];
|
||||||
|
|
||||||
|
services.printing.enable = true;
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
}
|
|
@ -1,17 +1,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./hardened.nix
|
|
||||||
./sound.nix
|
|
||||||
./i18n.nix
|
|
||||||
./nix.nix
|
|
||||||
./networking.nix
|
|
||||||
./vpn.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ wget curl openssl neovim ];
|
|
||||||
|
|
||||||
# TODO once nerdfonts 2.2.0 is released switch to NerdFontsSymbolsOnly
|
# TODO once nerdfonts 2.2.0 is released switch to NerdFontsSymbolsOnly
|
||||||
# Also needs to be added to known fonts in nixpkgs:
|
# Also needs to be added to known fonts in nixpkgs:
|
||||||
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/data/fonts/nerdfonts/shas.nix
|
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/data/fonts/nerdfonts/shas.nix
|
||||||
|
@ -32,7 +21,4 @@
|
||||||
monospace = [ "Fira Code" "Noto Color Emoji" "FiraCode Nerd Font" ];
|
monospace = [ "Fira Code" "Noto Color Emoji" "FiraCode Nerd Font" ];
|
||||||
emoji = [ "Noto Color Emoji" "FiraCode Nerd Font" ];
|
emoji = [ "Noto Color Emoji" "FiraCode Nerd Font" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.printing.enable = true;
|
|
||||||
services.fwupd.enable = true;
|
|
||||||
}
|
}
|
5
system/server.nix
Normal file
5
system/server.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ./common.nix ];
|
||||||
|
}
|
Loading…
Reference in a new issue