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 = [
|
imports = [
|
||||||
./cli.nix
|
./cli.nix
|
||||||
./programs/rofi
|
./programs/rofi
|
||||||
|
./programs/xmonad
|
||||||
./services/polybar
|
./services/polybar
|
||||||
./services/dunst
|
./services/dunst
|
||||||
./services/udiskie
|
./services/udiskie
|
||||||
./services/picom
|
./services/picom
|
||||||
./services/screen-locker
|
./services/screen-locker
|
||||||
|
./services/blueman-applet
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
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
|
./hardware-configuration.nix
|
||||||
# <nixos-hardware/lenovo/legion/15ich>
|
# <nixos-hardware/lenovo/legion/15ich>
|
||||||
../../modules/appimage.nix
|
../../modules/appimage.nix
|
||||||
|
../../modules/sudo.nix
|
||||||
../../modules/wm/x.nix
|
../../modules/wm/x.nix
|
||||||
../../modules/wm/xmonad/default.nix
|
../../modules/wm/xmonad/default.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ in {
|
||||||
inputs.snm.nixosModule
|
inputs.snm.nixosModule
|
||||||
inputs.agenix.nixosModules.age
|
inputs.agenix.nixosModules.age
|
||||||
../../modules/security.nix
|
../../modules/security.nix
|
||||||
|
../../modules/sudo.nix
|
||||||
../../modules/upgrade-pg-cluster.nix
|
../../modules/upgrade-pg-cluster.nix
|
||||||
../../modules/nix-config.nix
|
../../modules/nix-config.nix
|
||||||
../../modules/iohk.nix
|
../../modules/iohk.nix
|
||||||
|
|
@ -110,18 +111,6 @@ in {
|
||||||
defaults.email = "alex@jakalx.net";
|
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.
|
# Select internationalization properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
console = {
|
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 = {
|
windowManager.xmonad = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableContribAndExtras = 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;
|
config.systemd.services.upower.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue