refactor: move configs around

This commit is contained in:
Mohammad Rafiq 2025-03-31 04:11:47 +08:00
parent a8c03f0261
commit fc259dff4a
No known key found for this signature in database
52 changed files with 43 additions and 45 deletions

View file

@ -12,22 +12,19 @@
[ [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
./boot.nix ./boot.nix
./bootloaders/systemd-boot.nix
./networking.nix ./networking.nix
./nix-config.nix ./nix-config.nix
./security.nix ./security.nix
./shell ./shell.nix
./users.nix ./users.nix
] ]
# Options for graphical systems. # Options for graphical systems.
(lib.optionals (type == "desktop") [ (lib.optionals (type == "desktop") [
./graphical ./graphical.nix
./hardware/audio.nix
./hardware/bluetooth.nix
./stylix.nix
]) ])
# Options for specific hostnames. # Options for specific hostnames.
(lib.optionals (hostname == "nemesis") [ (lib.optionals (hostname == "nemesis") [
./bootloaders/systemd-boot.nix
./filesystems/hw-nemesis.nix ./filesystems/hw-nemesis.nix
# (import ./filesystems/impermanence.nix { # (import ./filesystems/impermanence.nix {
# inherit inputs lib; # inherit inputs lib;
@ -37,7 +34,6 @@
./hardware/nvidia.nix ./hardware/nvidia.nix
]) ])
(lib.optionals (hostname == "mellinoe") [ (lib.optionals (hostname == "mellinoe") [
./bootloaders/systemd-boot.nix
(import ./filesystems/impermanence.nix { (import ./filesystems/impermanence.nix {
inherit inputs lib; inherit inputs lib;
device = "/dev/disk/by-id/nvme-eui.01000000000000008ce38e04019a68ab"; device = "/dev/disk/by-id/nvme-eui.01000000000000008ce38e04019a68ab";
@ -45,7 +41,6 @@
./hardware/cpu_intel.nix ./hardware/cpu_intel.nix
]) ])
(lib.optionals (hostname == "apollo") [ (lib.optionals (hostname == "apollo") [
./bootloaders/systemd-boot.nix
(import ./filesystems/impermanence.nix { (import ./filesystems/impermanence.nix {
inherit inputs lib; inherit inputs lib;
device = "/dev/disk/by-id/nvme-eui.002538d221b47b01"; device = "/dev/disk/by-id/nvme-eui.002538d221b47b01";

25
configs/graphical.nix Normal file
View file

@ -0,0 +1,25 @@
{ pkgs, inputs, ... }:
{
imports = [
./programs/ags.nix
./programs/clipse.nix
./programs/dunst.nix
./programs/firefox.nix
./programs/fuzzel.nix
./programs/getty.nix
./programs/hyprland.nix
./programs/hyprlock.nix
./programs/hyprshade.nix
./programs/kitty.nix
./programs/spicetify.nix
./programs/stylix.nix
./hardware/audio.nix
./hardware/bluetooth.nix
];
home-manager.users.rafiq.home.packages = with pkgs; [
hyprpicker
inputs.hyprcloser.packages.${pkgs.stdenv.hostPlatform.system}.default
wl-clipboard # provides cli copy and paste commands
];
}

View file

@ -1,22 +0,0 @@
{ pkgs, inputs, ... }:
{
imports = [
./ags.nix
./clipse.nix
./dunst.nix
./firefox.nix
./fuzzel.nix
./getty.nix
./hyprland.nix
./hyprlock.nix
./hyprshade.nix
./kitty.nix
./spicetify.nix
];
home-manager.users.rafiq.home.packages = with pkgs; [
hyprpicker
inputs.hyprcloser.packages.${pkgs.stdenv.hostPlatform.system}.default
wl-clipboard # provides cli copy and paste commands
];
}

View file

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

Before After
Before After

View file

@ -1,21 +1,21 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
{ {
imports = [ imports = [
./scripts ./programs/scripts
./aichat.nix ./programs/aichat.nix
./comma.nix ./programs/comma.nix
./direnv.nix ./programs/direnv.nix
./editorconfig.nix ./programs/editorconfig.nix
./fzf.nix ./programs/fzf.nix
./git.nix ./programs/git.nix
./nh.nix ./programs/nh.nix
./nvf.nix ./programs/nvf.nix
./starship.nix ./programs/starship.nix
./tealdeer.nix ./programs/tealdeer.nix
./yazi.nix ./programs/yazi.nix
./zellij.nix ./programs/zellij.nix
./zoxide.nix ./programs/zoxide.nix
./zsh.nix ./programs/zsh.nix
]; ];
environment.shellInit = # sh environment.shellInit = # sh