Compare commits

..
4 Commits
Author SHA1 Message Date
smayzy 2b15ea7208 put keymap in default 2025-07-08 17:50:45 +02:00
smayzy 1bdab821a6 zsh forgot 2025-07-08 17:46:36 +02:00
smayzy a5edf53519 mv zsh to module 2025-07-08 17:43:52 +02:00
smayzy 6966de63c9 mv firefox to module 2025-07-08 17:39:23 +02:00
6 changed files with 52 additions and 11 deletions
+2 -11
View File
@@ -12,6 +12,8 @@
steam.enable = true; steam.enable = true;
prism.enable = true; prism.enable = true;
fzf.enable = true; fzf.enable = true;
firefox.enable = true;
zsh.enable = true;
}; };
home-manager = { home-manager = {
@@ -38,14 +40,6 @@
networking.hostName = "desktop1"; networking.hostName = "desktop1";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
users.defaultUserShell = pkgs.zsh;
services.xserver.xkb = {
layout = "fr";
variant = "";
};
console.keyMap = "fr";
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
services.displayManager.sddm.enable = true; services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true; services.displayManager.sddm.wayland.enable = true;
@@ -97,7 +91,4 @@
]; ];
}; };
programs.firefox.enable = true;
programs.zsh.enable = true;
} }
+6
View File
@@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./firefox.nix
];
}
+15
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;
};
}
+7
View File
@@ -6,6 +6,8 @@
./hardware ./hardware
./virt ./virt
./games ./games
./browser
./shell
]; ];
# Timzone and locales (same for all machines so I put it here) # Timzone and locales (same for all machines so I put it here)
@@ -21,4 +23,9 @@
"nvidia-x11" "nvidia-x11"
"nvidia-settings" "nvidia-settings"
]; ];
services.xserver.xkb = {
layout = "fr";
variant = "";
};
console.keyMap = "fr";
} }
+6
View File
@@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./zsh.nix
];
}
+16
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;
};
}