Compare commits

...

4 commits

8 changed files with 36 additions and 17 deletions

View file

@ -4,11 +4,13 @@
imports = [
./cli.nix
./programs/rofi
./programs/xmonad
./services/polybar
./services/dunst
./services/udiskie
./services/picom
./services/screen-locker
./services/blueman-applet
];
home = {

View file

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
config.xsession.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = ./config.hs;
};
# control backlight
config.home.packages = [ pkgs.xorg.xbacklight pkgs.scrot ];
}

View file

@ -0,0 +1,5 @@
{ config, lib, pkgs, ... }:
{
config.services.blueman-applet = { enable = true; };
}

View file

@ -17,6 +17,7 @@ in {
./hardware-configuration.nix
# <nixos-hardware/lenovo/legion/15ich>
../../modules/appimage.nix
../../modules/sudo.nix
../../modules/wm/x.nix
../../modules/wm/xmonad/default.nix
];

View file

@ -12,6 +12,7 @@ in {
inputs.snm.nixosModule
inputs.agenix.nixosModules.age
../../modules/security.nix
../../modules/sudo.nix
../../modules/upgrade-pg-cluster.nix
../../modules/nix-config.nix
../../modules/iohk.nix
@ -110,18 +111,6 @@ in {
defaults.email = "alex@jakalx.net";
};
security.sudo = {
enable = true;
execWheelOnly = true;
extraRules = [{
groups = [ "wheel" ];
commands = [{
command = "/run/current-system/sw/bin/nixos-rebuild";
options = [ "NOPASSWD" ];
}];
}];
};
# Select internationalization properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {

15
modules/sudo.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
config.security.sudo = {
enable = true;
execWheelOnly = true;
extraRules = [{
groups = [ "wheel" ];
commands = [{
command = "/run/current-system/sw/bin/nixos-rebuild";
options = [ "NOPASSWD" ];
}];
}];
};
}

View file

@ -8,14 +8,9 @@
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = ./config.hs;
extraPackages = hp: [ hp.dbus hp.monad-logger hp.xmonad-contrib ];
};
};
};
# control backlight
config.environment.systemPackages = [ pkgs.xorg.xbacklight pkgs.scrot ];
config.systemd.services.upower.enable = true;
}