Compare commits
	
		
			No commits in common. "ce494aa7a2a2eef426dd2e0a496e1e45df98115b" and "4bcfb6a660e91baba343465774b2bb55d1d58895" have entirely different histories.
		
	
	
		
			ce494aa7a2
			...
			4bcfb6a660
		
	
		
| @ -5,15 +5,14 @@ | |||||||
|   boot = { |   boot = { | ||||||
|     kernelPackages = pkgs.linuxPackages_latest; |     kernelPackages = pkgs.linuxPackages_latest; | ||||||
|     kernelParams = [ "zfs.zfs_arc_max=536870912" ]; |     kernelParams = [ "zfs.zfs_arc_max=536870912" ]; | ||||||
|     kernelModules = [ "i915" "acpi_call" "kvm-intel" ]; |     kernelModules = [ "i915" "acpi_call" ]; | ||||||
|     extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; |     extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; | ||||||
|     supportedFilesystems = [ "zfs" ]; |     supportedFilesystems = [ "zfs" ]; | ||||||
|     zfs.requestEncryptionCredentials = true; |     zfs.requestEncryptionCredentials = true; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   # Intel CPU tweaks |   # Intel CPU tweaks | ||||||
|   hardware.cpu.intel.updateMicrocode = |   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||||||
|     lib.mkDefault config.hardware.enableRedistributableFirmware; |  | ||||||
| 
 | 
 | ||||||
|   hardware.opengl.extraPackages = with pkgs; [ |   hardware.opengl.extraPackages = with pkgs; [ | ||||||
|     vaapiIntel |     vaapiIntel | ||||||
| @ -71,24 +70,8 @@ | |||||||
|   users.users.coolneng = { |   users.users.coolneng = { | ||||||
|     isNormalUser = true; |     isNormalUser = true; | ||||||
|     home = "/home/coolneng"; |     home = "/home/coolneng"; | ||||||
|     extraGroups = [ "wheel" "video" "audio" "libvirtd" ]; |     extraGroups = [ "wheel" "video" "audio" ]; | ||||||
|     shell = pkgs.fish; |     shell = "/run/current-system/sw/bin/fish"; | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   # Set fish shell for root user |  | ||||||
|   users.users.root = { |  | ||||||
|     shell = pkgs.fish; |  | ||||||
|     openssh.authorizedKeys.keys = [ |  | ||||||
|       "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC9mMwf7yXwtiEABwq5zkNEXgveUhNEPfqa3VLdnG2UYArB6f2l2aFM+MkGc8s84T8cj7JDF2N1pEBvilGMNWmLT32IBfwjyJov/38/PTpWb3301hCck5EOWmykGWMXdRlIEj6vsR4UqeRFwbr8QBlxv2dTPe9wTrCLvkKOuaPWMyMgtEwnNHvB8e7eqUZZYVmRSQkWCqYmK7a6TCvHUg3XsmjQU3OSmTH+eXJEUL4OiSFKxd9eO5QU04uYDbX8f8jY/slReoEWbuJ/InSWFbPs6L3bUYQrl3ht/7DR9FqzcOpAN4AcrJFyIJzot8inpp6f5IsVVjy0dhNUGWtXMkOgNf6lmylokqFBb1Jcy/lJbgUtJZ5ZNjlJFCbjXHe6J0q7bYKJgMQKuY1N3rexhZIMsBXi8aYaSKaGqX7TPnBEPlr1hXda2lGm2l6jQq5Lj2U5aj5aBa/BYmKFGVxcMpRFlsWfYPyQ/2wxRcpNcDiJt0eWP70mhu8OcupPO9kxGw0= coolneng@panacea" |  | ||||||
|     ]; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   # Enable localhost SSH |  | ||||||
|   services.openssh = { |  | ||||||
|     enable = true; |  | ||||||
|     permitRootLogin = "yes"; |  | ||||||
|     passwordAuthentication = false; |  | ||||||
|     openFirewall = false; |  | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   # Import other configuration modules |   # Import other configuration modules | ||||||
|  | |||||||
| @ -1,10 +1,10 @@ | |||||||
| { config, lib, pkgs, ... }: | { config, lib, pkgs, ... }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   # Enable ALSA |  # Enable ALSA | ||||||
|   sound.enable = true; |  sound.enable = true; | ||||||
| 
 | 
 | ||||||
|   # Configure PulseAudio with mopidy tweaks |  # Configure PulseAudio with mopidy tweaks | ||||||
|   hardware.pulseaudio = { |   hardware.pulseaudio = { | ||||||
|     enable = true; |     enable = true; | ||||||
|     tcp = { |     tcp = { | ||||||
| @ -12,60 +12,4 @@ | |||||||
|       anonymousClients.allowedIpRanges = [ "127.0.0.1" ]; |       anonymousClients.allowedIpRanges = [ "127.0.0.1" ]; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| 
 |  | ||||||
|   # Set up Mopidy |  | ||||||
|   services.mopidy = { |  | ||||||
|     enable = true; |  | ||||||
|     extensionPackages = |  | ||||||
|       [ pkgs.mopidy-mpd pkgs.mopidy-soundcloud pkgs.mopidy-youtube ]; |  | ||||||
|     configuration = '' |  | ||||||
|       [core] |  | ||||||
|       cache_dir = $XDG_CACHE_DIR/cache/mopidy |  | ||||||
|       config_dir = $XDG_CONFIG_DIR/mopidy |  | ||||||
|       data_dir = $XDG_DATA_DIR/lib/mopidy |  | ||||||
| 
 |  | ||||||
|       [logging] |  | ||||||
|       config_file = $XDG_CONFIG_DIR/mopidy/logging.conf |  | ||||||
| 
 |  | ||||||
|       [audio] |  | ||||||
|       mixer = software |  | ||||||
|       mixer_volume = |  | ||||||
|       output = pulsesink server=127.0.0.1 |  | ||||||
|       visualizer = |  | ||||||
| 
 |  | ||||||
|       [file] |  | ||||||
|       enabled = true |  | ||||||
|       media_dirs = /home/coolneng/Music |  | ||||||
|       excluded_file_extensions = |  | ||||||
|         .directory |  | ||||||
|         .html |  | ||||||
|         .jpeg |  | ||||||
|         .jpg |  | ||||||
|         .log |  | ||||||
|         .nfo |  | ||||||
|         .png |  | ||||||
|         .txt |  | ||||||
| 
 |  | ||||||
|       [mpd] |  | ||||||
|       enabled = true |  | ||||||
|       hostname = 127.0.0.1 |  | ||||||
|       port = 6600 |  | ||||||
|       password = |  | ||||||
|       max_connections = 20 |  | ||||||
|       zeroconf = "" |  | ||||||
| 
 |  | ||||||
|       [http] |  | ||||||
|       enabled = false |  | ||||||
| 
 |  | ||||||
|       [soundcloud] |  | ||||||
|       enabled = false |  | ||||||
| 
 |  | ||||||
|       [m3u] |  | ||||||
|       playlists_dir = /home/coolneng/.config/mpd/playlists |  | ||||||
|       base_dir = /home/coolneng/Music |  | ||||||
|     ''; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   # Give permissions to mopidy user |  | ||||||
|   users.users.mopidy = { extraGroups = [ "audio" ]; }; |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -3,7 +3,4 @@ | |||||||
| { | { | ||||||
|   # Improve nix-shell and direnv integration |   # Improve nix-shell and direnv integration | ||||||
|   services.lorri.enable = true; |   services.lorri.enable = true; | ||||||
| 
 |  | ||||||
|   # Enable virtualization |  | ||||||
|   virtualisation.libvirtd.enable = true; |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ | |||||||
|   services.xserver.enable = true; |   services.xserver.enable = true; | ||||||
|   services.xserver.displayManager = { |   services.xserver.displayManager = { | ||||||
|     defaultSession = "sway"; |     defaultSession = "sway"; | ||||||
|     lightdm = { |     sddm = { | ||||||
|       enable = true; |       enable = true; | ||||||
|       autoLogin = { |       autoLogin = { | ||||||
|         enable = true; |         enable = true; | ||||||
| @ -34,6 +34,8 @@ | |||||||
|       kitty |       kitty | ||||||
|     ]; |     ]; | ||||||
|     extraSessionCommands = '' |     extraSessionCommands = '' | ||||||
|  |       export MOZ_ENABLE_WAYLAND=1 | ||||||
|  |       export MOZ_DBUS_REMOTE=1 | ||||||
|       export GRIM_DEFAULT_DIR=/home/coolneng/Photos/Screenshots |       export GRIM_DEFAULT_DIR=/home/coolneng/Photos/Screenshots | ||||||
|       export _JAVA_AWT_WM_NONREPARENTING=1 |       export _JAVA_AWT_WM_NONREPARENTING=1 | ||||||
|       export QT_QPA_PLATFORM=wayland |       export QT_QPA_PLATFORM=wayland | ||||||
| @ -46,21 +48,21 @@ | |||||||
|   programs.light.enable = true; |   programs.light.enable = true; | ||||||
| 
 | 
 | ||||||
|   # Blue light filter |   # Blue light filter | ||||||
|   location = { |  | ||||||
|     latitude = 35.89; |  | ||||||
|     longitude = -5.32; |  | ||||||
|     provider = "manual"; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   services.redshift = { |   services.redshift = { | ||||||
|     package = pkgs.redshift-wlr; |     package = pkgs.redshift-wlr; | ||||||
|     enable = true; |     enable = true; | ||||||
|     temperature = { |     temperature = { | ||||||
|       day = 6500; |       day = 6500; | ||||||
|       night = 5300; |       night = 5000; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|  |   location = { | ||||||
|  |     latitude = 35.89; | ||||||
|  |     longitude = -5.32; | ||||||
|  |     provider = "manual"; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|   # Bar |   # Bar | ||||||
|   programs.waybar.enable = true; |   programs.waybar.enable = true; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,13 +1,18 @@ | |||||||
| { config, lib, pkgs, ... }: | { config, lib, pkgs, ... }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   environment.systemPackages = with pkgs; [ avahi wireguard ]; |   environment.systemPackages = with pkgs; [ | ||||||
|  |     avahi | ||||||
|  |     wireguard | ||||||
|  |   ]; | ||||||
| 
 | 
 | ||||||
|   # Set hostname and hostid |   # Set hostname and hostid | ||||||
|   networking = { |   networking = { | ||||||
|     hostName = "panacea"; |     hostName = "panacea"; | ||||||
|     hostId = "8feb0bb8"; |     hostId = "8feb0bb8"; | ||||||
|     wireless.enable = true; |     wireless = { | ||||||
|  |       enable = true; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   # Enable zeroconf |   # Enable zeroconf | ||||||
| @ -17,11 +22,10 @@ | |||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   # Wireguard setup |   # Wireguard setup | ||||||
|   networking.wg-quick.interfaces = { |   networking.wireguard.interfaces = { | ||||||
|     wg0 = { |     wg0 = { | ||||||
|       address = [ "10.8.0.4/32" ]; |       ips = [ "10.8.0.4/32" ]; | ||||||
|       privateKeyFile = "/home/coolneng/.wg/keys/privatekey"; |       privateKeyFile = "/home/coolneng/.wg/keys/privatekey"; | ||||||
|       dns = [ "198.100.148.224" "151.80.222.79" ]; |  | ||||||
|       peers = [ |       peers = [ | ||||||
|         # zion |         # zion | ||||||
|         { |         { | ||||||
|  | |||||||
| @ -11,7 +11,7 @@ | |||||||
|     passff-host |     passff-host | ||||||
|     gitAndTools.pass-git-helper |     gitAndTools.pass-git-helper | ||||||
|     # Browsers |     # Browsers | ||||||
|     (firefox-wayland.override { extraNativeMessagingHosts = [ passff-host ]; }) |     (firefox.override { extraNativeMessagingHosts = [ passff-host ]; }) | ||||||
|     chromium |     chromium | ||||||
|     # LaTeX |     # LaTeX | ||||||
|     texlive.combined.scheme-full |     texlive.combined.scheme-full | ||||||
| @ -33,16 +33,8 @@ | |||||||
|     lorri |     lorri | ||||||
|     nixfmt |     nixfmt | ||||||
|     # Rice |     # Rice | ||||||
|     gtk_engines |  | ||||||
|     adapta-gtk-theme |     adapta-gtk-theme | ||||||
|     paper-icon-theme |     paper-icon-theme | ||||||
|     # Audio |  | ||||||
|     mopidy |  | ||||||
|     ncmpcpp |  | ||||||
|     # Productivity |  | ||||||
|     fff |  | ||||||
|     zathura |  | ||||||
|     libreoffice |  | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   # Fonts declaration |   # Fonts declaration | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user