Merge branch 'overhaul' of https://github.com/KoenDR06/nix-config into overhaul

This commit is contained in:
KoenDR06 2025-06-11 15:00:21 +02:00
commit 918cd1665b
9 changed files with 100 additions and 62 deletions

12
flake.lock generated
View file

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1748487945,
"narHash": "sha256-e9zc/rHdoH9i+sFFhhQiKoF6IuD+T2rB/nUyPaO7CCg=",
"lastModified": 1749154018,
"narHash": "sha256-gjN3j7joRvT3a8Zgcylnd4NFsnXeDBumqiu4HmY1RIg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0d13ea58d565d3c1c1468ddae1f623316dc395d9",
"rev": "7aae0ee71a17b19708b93b3ed448a1a0952bf111",
"type": "github"
},
"original": {
@ -23,11 +23,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1748302896,
"narHash": "sha256-ixMT0a8mM091vSswlTORZj93WQAJsRNmEvqLL+qwTFM=",
"lastModified": 1749237914,
"narHash": "sha256-N5waoqWt8aMr/MykZjSErOokYH6rOsMMXu3UOVH5kiw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "7848cd8c982f7740edf76ddb3b43d234cb80fc4d",
"rev": "70c74b02eac46f4e4aa071e45a6189ce0f6d9265",
"type": "github"
},
"original": {

View file

@ -8,7 +8,6 @@
}: {
imports = [
../../modules
../../modules/boot/loader/systemd.nix
];
config.horseman = {

View file

@ -17,8 +17,7 @@ in {
};
config = mkIf cfg.enable {
home-manager.users.${homeCfg.username} = {
home.packages = with pkgs; [
environment.systemPackages = with pkgs; [
dotnetCorePackages.sdk_9_0
gcc
ghex
@ -40,5 +39,4 @@ in {
uv
];
};
};
}

View file

@ -1,6 +1,9 @@
{inputs, ...}: {
imports = [
./greeter/sddm.nix
./greeter/gdm.nix
./greeter/cosmic.nix
./refind.nix
./loader/grub.nix

View file

@ -0,0 +1,23 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.greeter.cosmic;
in {
options = {
horseman.boot.greeter.cosmic = {
enable = mkEnableOption "COSMIC Greeter";
};
};
config = mkIf cfg.enable {
services.displayManager.cosmic-greeter = {
enable = true;
};
};
}

View file

@ -0,0 +1,23 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.greeter.gdm;
in {
options = {
horseman.boot.greeter.gdm = {
enable = mkEnableOption "GDM Greeter";
};
};
config = mkIf cfg.enable {
services.xserver.displayManager.gdm = {
enable = true;
};
};
}

View file

@ -0,0 +1,23 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.wm.cosmic;
in {
options = {
horseman.wm.cosmic = {
enable = mkEnableOption "COSMIC";
};
};
config = mkIf cfg.enable {
services.desktopManager.cosmic = {
enable = true;
};
};
}

View file

@ -3,5 +3,6 @@
./gnome
./plasma
./hyprland
./cosmic
];
}

View file

@ -1,32 +0,0 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.wm.qtile;
in {
options = {
horseman.wm.qtile = {
enable = mkEnableOption "Qtile";
};
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
windowManager.qtile.enable = true;
};
system.activationScripts.script.text = ''
cd /home/horseman && \
rm -r .config/qtile && \
cp -r nix-config/modules/wm/qtile/config \
.config/qtile && \
sudo chown -R horseman:users .config/qtile
'';
};
}