Compare commits
4 commits
3e0d77b66a
...
a96bcaf989
| Author | SHA1 | Date | |
|---|---|---|---|
| a96bcaf989 | |||
| fe6d16b2e6 | |||
| f4bf5bda6e | |||
| 54fef7aa7e |
8 changed files with 36 additions and 17 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
12
home/alex/programs/xmonad/default.nix
Normal file
12
home/alex/programs/xmonad/default.nix
Normal 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 ];
|
||||
}
|
||||
5
home/alex/services/blueman-applet/default.nix
Normal file
5
home/alex/services/blueman-applet/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config.services.blueman-applet = { enable = true; };
|
||||
}
|
||||
|
|
@ -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
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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
15
modules/sudo.nix
Normal 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" ];
|
||||
}];
|
||||
}];
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue