Split configuration.nix and home.nix into per-domain modules
Break the two monolithic files into focused modules under system/ and home/ so each concern (boot, networking, xserver, picom, zsh, git, rofi, etc.) lives in its own file. Clean up duplicates: drop rofi from home.packages since programs.rofi.enable already installs it, and move user-only apps (alacritty, obsidian, claude-code) from environment.systemPackages to home.packages. Remove commented-out boilerplate carried over from the install template.
This commit is contained in:
6
system/boot.nix
Normal file
6
system/boot.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
}
|
||||
5
system/display-manager.nix
Normal file
5
system/display-manager.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.displayManager.ly.enable = true;
|
||||
}
|
||||
7
system/fonts.nix
Normal file
7
system/fonts.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
fonts.packages = with pkgs; [
|
||||
jetbrains-mono
|
||||
];
|
||||
}
|
||||
5
system/locale.nix
Normal file
5
system/locale.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
time.timeZone = "Europe/Berlin";
|
||||
}
|
||||
6
system/networking.nix
Normal file
6
system/networking.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "hivebrain";
|
||||
networking.networkmanager.enable = true;
|
||||
}
|
||||
6
system/nix.nix
Normal file
6
system/nix.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
10
system/packages.nix
Normal file
10
system/packages.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
btop
|
||||
jq
|
||||
];
|
||||
}
|
||||
9
system/picom.nix
Normal file
9
system/picom.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.picom = {
|
||||
enable = true;
|
||||
backend = "xrender";
|
||||
fade = true;
|
||||
};
|
||||
}
|
||||
7
system/programs.nix
Normal file
7
system/programs.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.firefox.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
programs.nix-ld.enable = true;
|
||||
}
|
||||
5
system/ssh.nix
Normal file
5
system/ssh.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
12
system/users.nix
Normal file
12
system/users.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
users.users.marvin = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
shell = pkgs.zsh;
|
||||
packages = with pkgs; [
|
||||
tree
|
||||
];
|
||||
};
|
||||
}
|
||||
28
system/xserver.nix
Normal file
28
system/xserver.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
autoRepeatDelay = 200;
|
||||
autoRepeatInterval = 35;
|
||||
windowManager.qtile.enable = true;
|
||||
displayManager.sessionCommands = ''
|
||||
xwallpaper --zoom ~/nixos-dotfiles/Pictures/NixOsWallpaper.png
|
||||
'';
|
||||
xrandrHeads = [
|
||||
{
|
||||
output = "HDMI-1";
|
||||
monitorConfig = ''
|
||||
Option "Position" "0 0"
|
||||
'';
|
||||
}
|
||||
{
|
||||
output = "DP-1";
|
||||
primary = true;
|
||||
monitorConfig = ''
|
||||
Option "Position" "1920 0"
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user