Compare commits

...

4 Commits

Author SHA1 Message Date
2b15ea7208 put keymap in default 2025-07-08 17:50:45 +02:00
1bdab821a6 zsh forgot 2025-07-08 17:46:36 +02:00
a5edf53519 mv zsh to module 2025-07-08 17:43:52 +02:00
6966de63c9 mv firefox to module 2025-07-08 17:39:23 +02:00
6 changed files with 52 additions and 11 deletions

View File

@ -12,6 +12,8 @@
steam.enable = true;
prism.enable = true;
fzf.enable = true;
firefox.enable = true;
zsh.enable = true;
};
home-manager = {
@ -38,14 +40,6 @@
networking.hostName = "desktop1";
networking.networkmanager.enable = true;
users.defaultUserShell = pkgs.zsh;
services.xserver.xkb = {
layout = "fr";
variant = "";
};
console.keyMap = "fr";
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
@ -97,7 +91,4 @@
];
};
programs.firefox.enable = true;
programs.zsh.enable = true;
}

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./firefox.nix
];
}

View File

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.firefox.enable = mkOption {
type = types.bool;
default = false;
description = "firefox";
};
config = mkIf config.smayzy.firefox.enable {
programs.firefox.enable = true;
};
}

View File

@ -6,6 +6,8 @@
./hardware
./virt
./games
./browser
./shell
];
# Timzone and locales (same for all machines so I put it here)
@ -21,4 +23,9 @@
"nvidia-x11"
"nvidia-settings"
];
services.xserver.xkb = {
layout = "fr";
variant = "";
};
console.keyMap = "fr";
}

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./zsh.nix
];
}

16
modules/nix/shell/zsh.nix Normal file
View File

@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.zsh.enable = mkOption {
type = types.bool;
default = false;
description = "zsh";
};
config = mkIf config.smayzy.zsh.enable {
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
};
}