a bunch of random changes again
This commit is contained in:
1
common/all.nix
Normal file → Executable file
1
common/all.nix
Normal file → Executable file
@@ -28,6 +28,7 @@
|
||||
experimental-features = lib.mkDefault "nix-command flakes";
|
||||
trusted-users = [ "root" "@wheel" ];
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home-manager.backupFileExtension = "backup";
|
||||
|
||||
|
||||
0
common/building.nix
Normal file → Executable file
0
common/building.nix
Normal file → Executable file
@@ -7,37 +7,43 @@
|
||||
modules.battery_monitor.enable = true;
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager = {
|
||||
defaultSession = "none+xmonad";
|
||||
sessionCommands = ''
|
||||
xmobar ${self}/misc/xmobar.hs &
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager = {
|
||||
defaultSession = "none+xmonad";
|
||||
sessionCommands = ''
|
||||
xmobar ${self}/misc/xmobar.hs &
|
||||
|
||||
# aparently needed, so that xmonad works
|
||||
sleep 2 && \
|
||||
${pkgs.xorg.xmodmap}/bin/xmodmap \
|
||||
-e "clear control" \
|
||||
-e "clear mod1" \
|
||||
-e "keycode 64 = Control_L" \
|
||||
-e "keycode 37 = Alt_L" \
|
||||
-e "add control = Control_L" \
|
||||
-e "add mod1 = Alt_L" \
|
||||
&
|
||||
'';
|
||||
};
|
||||
# aparently needed, so that xmonad works
|
||||
sleep 2 && \
|
||||
${pkgs.xorg.xmodmap}/bin/xmodmap \
|
||||
-e "clear control" \
|
||||
-e "clear mod1" \
|
||||
-e "keycode 64 = Control_L" \
|
||||
-e "keycode 37 = Alt_L" \
|
||||
-e "add control = Control_L" \
|
||||
-e "add mod1 = Alt_L" \
|
||||
&
|
||||
'';
|
||||
};
|
||||
|
||||
#displayManager.gdm = {
|
||||
#enable = true;
|
||||
#};
|
||||
|
||||
displayManager.lightdm = {
|
||||
enable = true;
|
||||
greeters.enso = {
|
||||
enable = true;
|
||||
blur = true;
|
||||
extraConfig = ''
|
||||
default-wallpaper=/usr/share/streets_of_gruvbox.png
|
||||
'';
|
||||
};
|
||||
};
|
||||
layout = "at";
|
||||
#/*
|
||||
displayManager.lightdm = {
|
||||
enable = true;
|
||||
greeters.enso = {
|
||||
enable = true;
|
||||
blur = true;
|
||||
extraConfig = ''
|
||||
default-wallpaper=/usr/share/streets_of_gruvbox.png
|
||||
'';
|
||||
};
|
||||
};
|
||||
# */
|
||||
layout = "at";
|
||||
};
|
||||
|
||||
# xdg portals
|
||||
@@ -61,7 +67,7 @@
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
services.blueman.enable = true;
|
||||
services.blueman.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
|
||||
0
common/nixos-headless.nix
Normal file → Executable file
0
common/nixos-headless.nix
Normal file → Executable file
6
common/nixos.nix
Normal file → Executable file
6
common/nixos.nix
Normal file → Executable file
@@ -14,5 +14,11 @@
|
||||
#keyMap = "at";
|
||||
useXkbConfig = true; # use xkbOptions in tty.
|
||||
};
|
||||
|
||||
system.activationScripts.addBinBash = lib.stringAfter [ "var" ] ''
|
||||
# there is no /bin/bash
|
||||
# https://discourse.nixos.org/t/add-bin-bash-to-avoid-unnecessary-pain/5673
|
||||
ln -nsf /run/current-system/sw/bin/bash /bin/bash
|
||||
'';
|
||||
}
|
||||
|
||||
|
||||
0
common/wg-peers.nix
Normal file → Executable file
0
common/wg-peers.nix
Normal file → Executable file
Reference in New Issue
Block a user