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

View file

@ -17,28 +17,26 @@ in {
};
config = mkIf cfg.enable {
home-manager.users.${homeCfg.username} = {
home.packages = with pkgs; [
dotnetCorePackages.sdk_9_0
gcc
ghex
haskell.compiler.native-bignum.ghcHEAD
haskell-language-server
jdk
jetbrains.clion
jetbrains.idea-ultimate
jetbrains.rider
jetbrains.rust-rover
jetbrains.webstorm
mono
nodejs_22
platformio-core
python313
sqlite
sqlitebrowser
xclip
uv
];
};
environment.systemPackages = with pkgs; [
dotnetCorePackages.sdk_9_0
gcc
ghex
haskell.compiler.native-bignum.ghcHEAD
haskell-language-server
jdk
jetbrains.clion
jetbrains.idea-ultimate
jetbrains.rider
jetbrains.rust-rover
jetbrains.webstorm
mono
nodejs_22
platformio-core
python313
sqlite
sqlitebrowser
xclip
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
'';
};
}