add cosmic modules, probably won't switch to it
This commit is contained in:
parent
299bcba29b
commit
b179cec316
7 changed files with 75 additions and 35 deletions
|
|
@ -1,6 +1,9 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
./greeter/sddm.nix
|
||||
./greeter/gdm.nix
|
||||
./greeter/cosmic.nix
|
||||
|
||||
./refind.nix
|
||||
|
||||
./loader/grub.nix
|
||||
|
|
|
|||
23
modules/boot/greeter/cosmic.nix
Normal file
23
modules/boot/greeter/cosmic.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
23
modules/boot/greeter/gdm.nix
Normal file
23
modules/boot/greeter/gdm.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
23
modules/wm/cosmic/default.nix
Normal file
23
modules/wm/cosmic/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -3,5 +3,6 @@
|
|||
./gnome
|
||||
./plasma
|
||||
./hyprland
|
||||
./cosmic
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue