this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

🧹 Moved almost all files to /modules. Moved some code to separate files

+133 -102
-3
.gitignore
··· 1 - # Autogenerated 2 - hardware-configuration.nix 3 - 4 1 # Symlink create by `nix build` 5 2 result 6 3
audio.nix modules/hardware/audio.nix
+3 -75
configuration.nix
··· 9 9 }: 10 10 11 11 { 12 - imports = [ 13 - ./gnome 14 - ./hardware-configuration.nix 15 - ./keyboard.nix 16 - ./terminal 17 - ./hyprland 18 - ./audio.nix 19 - ./networking.nix 20 - ./nixHelper.nix 21 - ./development.nix 22 - ./security.nix 23 - ./locale.nix 24 - ./sddm.nix 25 - ]; 12 + imports = [ ./modules ]; 26 13 27 14 nixpkgs.overlays = [ outputs.overlays.unstable-packages ]; 28 15 ··· 46 33 environment.sessionVariables = { 47 34 # Tells Electron apps to use Wayland 48 35 NIXOS_OZONE_WL = "1"; 49 - NIXOS_CONFIG_PATH = "/etc/nixos"; 50 - LIBVA_DRIVER_NAME = "iHD"; # For hardware acceleration 51 - }; 52 - 53 - fonts = { 54 - fontconfig.enable = true; 55 - packages = with pkgs; [ 56 - (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) 57 - jetbrains-mono 58 - # The line below will replace the lines above in 25.05 59 - # nerd-fonts.jetbrains-mono 60 - ]; 61 36 }; 62 37 63 38 # List packages installed in system profile. To search, run: 64 39 # $ nix search wget 65 40 environment.systemPackages = with pkgs; [ 66 - gnupg 67 41 wget 68 - kitty 69 42 xdg-utils 43 + xdg-desktop-portal 70 44 xdg-desktop-portal-gtk 71 45 kdePackages.qtwayland 72 46 kdePackages.qtsvg ··· 92 66 # programs.mtr.enable = true; 93 67 94 68 programs = { 95 - gnupg.agent.enable = true; 96 - 97 69 kdeconnect.enable = true; 98 - 99 - steam = { 100 - enable = true; 101 - remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play 102 - dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server 103 - localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers 104 - }; 105 70 }; 106 71 107 72 # List services that you want to enable: ··· 111 76 112 77 services = { 113 78 flatpak.enable = true; 114 - 115 - xserver = { 116 - enable = true; 117 - # Load Nvidia driver for Xorg and Wayland 118 - videoDrivers = [ "nvidia" ]; 119 - }; 120 - }; 121 - 122 - stylix = { 123 - enable = true; 124 - image = ./catppuccin.png; 125 - base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml"; 126 - polarity = "dark"; 127 - opacity.terminal = 0.8; 128 - override = { 129 - base02 = "b0b0b0"; # Comments in shell 130 - base03 = "b0b0b0"; # Comments in nvim 131 - base04 = "b0b0b0"; # Secondary text in shell 132 - }; 79 + xserver.enable = true; 133 80 }; 134 81 135 82 qt.enable = true; 136 - 137 - hardware = { 138 - # Enable OpenGL 139 - graphics = { 140 - enable = true; 141 - extraPackages = with pkgs; [ 142 - intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD 143 - ]; 144 - }; 145 - 146 - nvidia = { 147 - # Required 148 - modesetting.enable = true; 149 - # Use closed-source drivers 150 - open = false; 151 - # Enable the Nvidia settings menu 152 - nvidiaSettings = true; 153 - }; 154 - }; 155 83 156 84 # This value determines the NixOS release from which the default 157 85 # settings for stateful data, like file locations and database versions
development.nix modules/development.nix
+1 -1
flake.nix
··· 50 50 useUserPackages = true; 51 51 # Passes inputs as an argument to home-manager 52 52 extraSpecialArgs = { inherit inputs; }; 53 - users.martin = import ./home; 53 + users.martin = import ./home-manager; 54 54 }; 55 55 } 56 56 stylix.nixosModules.stylix
+1 -1
gnome/default.nix modules/gnome/default.nix
··· 10 10 glib 11 11 adwaita-icon-theme 12 12 gnomeExtensions.appindicator 13 - # gnome-extension-manager 13 + # gnome-extension-manager 14 14 loupe 15 15 gnome-calculator 16 16 gnome-disk-utility
gnome/nautilus.nix modules/gnome/nautilus.nix
hardware-configuration.nix modules/hardware/hardware-configuration.nix
home/default-applications.nix home-manager/default-applications.nix
home/default.nix home-manager/default.nix
home/fish.nix home-manager/fish.nix
home/hyprland/default.nix home-manager/hyprland/default.nix
home/hyprland/hyprcursor/default.nix home-manager/hyprland/hyprcursor/default.nix
home/hyprland/hyprcursor/hyprcursors/X_cursor.hlc home-manager/hyprland/hyprcursor/hyprcursors/X_cursor.hlc
home/hyprland/hyprcursor/hyprcursors/all-scroll.hlc home-manager/hyprland/hyprcursor/hyprcursors/all-scroll.hlc
home/hyprland/hyprcursor/hyprcursors/bd_double_arrow.hlc home-manager/hyprland/hyprcursor/hyprcursors/bd_double_arrow.hlc
home/hyprland/hyprcursor/hyprcursors/bottom_left_corner.hlc home-manager/hyprland/hyprcursor/hyprcursors/bottom_left_corner.hlc
home/hyprland/hyprcursor/hyprcursors/bottom_right_corner.hlc home-manager/hyprland/hyprcursor/hyprcursors/bottom_right_corner.hlc
home/hyprland/hyprcursor/hyprcursors/bottom_side.hlc home-manager/hyprland/hyprcursor/hyprcursors/bottom_side.hlc
home/hyprland/hyprcursor/hyprcursors/center_ptr.hlc home-manager/hyprland/hyprcursor/hyprcursors/center_ptr.hlc
home/hyprland/hyprcursor/hyprcursors/col-resize.hlc home-manager/hyprland/hyprcursor/hyprcursors/col-resize.hlc
home/hyprland/hyprcursor/hyprcursors/color-picker.hlc home-manager/hyprland/hyprcursor/hyprcursors/color-picker.hlc
home/hyprland/hyprcursor/hyprcursors/context-menu.hlc home-manager/hyprland/hyprcursor/hyprcursors/context-menu.hlc
home/hyprland/hyprcursor/hyprcursors/copy.hlc home-manager/hyprland/hyprcursor/hyprcursors/copy.hlc
home/hyprland/hyprcursor/hyprcursors/cross.hlc home-manager/hyprland/hyprcursor/hyprcursors/cross.hlc
home/hyprland/hyprcursor/hyprcursors/crossed_circle.hlc home-manager/hyprland/hyprcursor/hyprcursors/crossed_circle.hlc
home/hyprland/hyprcursor/hyprcursors/dnd_no_drop.hlc home-manager/hyprland/hyprcursor/hyprcursors/dnd_no_drop.hlc
home/hyprland/hyprcursor/hyprcursors/dotbox.hlc home-manager/hyprland/hyprcursor/hyprcursors/dotbox.hlc
home/hyprland/hyprcursor/hyprcursors/fd_double_arrow.hlc home-manager/hyprland/hyprcursor/hyprcursors/fd_double_arrow.hlc
home/hyprland/hyprcursor/hyprcursors/hand1.hlc home-manager/hyprland/hyprcursor/hyprcursors/hand1.hlc
home/hyprland/hyprcursor/hyprcursors/hand2.hlc home-manager/hyprland/hyprcursor/hyprcursors/hand2.hlc
home/hyprland/hyprcursor/hyprcursors/left_ptr.hlc home-manager/hyprland/hyprcursor/hyprcursors/left_ptr.hlc
home/hyprland/hyprcursor/hyprcursors/left_side.hlc home-manager/hyprland/hyprcursor/hyprcursors/left_side.hlc
home/hyprland/hyprcursor/hyprcursors/link.hlc home-manager/hyprland/hyprcursor/hyprcursors/link.hlc
home/hyprland/hyprcursor/hyprcursors/move.hlc home-manager/hyprland/hyprcursor/hyprcursors/move.hlc
home/hyprland/hyprcursor/hyprcursors/pencil.hlc home-manager/hyprland/hyprcursor/hyprcursors/pencil.hlc
home/hyprland/hyprcursor/hyprcursors/pirate.hlc home-manager/hyprland/hyprcursor/hyprcursors/pirate.hlc
home/hyprland/hyprcursor/hyprcursors/plus.hlc home-manager/hyprland/hyprcursor/hyprcursors/plus.hlc
home/hyprland/hyprcursor/hyprcursors/question_arrow.hlc home-manager/hyprland/hyprcursor/hyprcursors/question_arrow.hlc
home/hyprland/hyprcursor/hyprcursors/right_ptr.hlc home-manager/hyprland/hyprcursor/hyprcursors/right_ptr.hlc
home/hyprland/hyprcursor/hyprcursors/right_side.hlc home-manager/hyprland/hyprcursor/hyprcursors/right_side.hlc
home/hyprland/hyprcursor/hyprcursors/row-resize.hlc home-manager/hyprland/hyprcursor/hyprcursors/row-resize.hlc
home/hyprland/hyprcursor/hyprcursors/sb_down_arrow.hlc home-manager/hyprland/hyprcursor/hyprcursors/sb_down_arrow.hlc
home/hyprland/hyprcursor/hyprcursors/sb_h_double_arrow.hlc home-manager/hyprland/hyprcursor/hyprcursors/sb_h_double_arrow.hlc
home/hyprland/hyprcursor/hyprcursors/sb_left_arrow.hlc home-manager/hyprland/hyprcursor/hyprcursors/sb_left_arrow.hlc
home/hyprland/hyprcursor/hyprcursors/sb_right_arrow.hlc home-manager/hyprland/hyprcursor/hyprcursors/sb_right_arrow.hlc
home/hyprland/hyprcursor/hyprcursors/sb_up_arrow.hlc home-manager/hyprland/hyprcursor/hyprcursors/sb_up_arrow.hlc
home/hyprland/hyprcursor/hyprcursors/sb_v_double_arrow.hlc home-manager/hyprland/hyprcursor/hyprcursors/sb_v_double_arrow.hlc
home/hyprland/hyprcursor/hyprcursors/top_left_corner.hlc home-manager/hyprland/hyprcursor/hyprcursors/top_left_corner.hlc
home/hyprland/hyprcursor/hyprcursors/top_right_corner.hlc home-manager/hyprland/hyprcursor/hyprcursors/top_right_corner.hlc
home/hyprland/hyprcursor/hyprcursors/top_side.hlc home-manager/hyprland/hyprcursor/hyprcursors/top_side.hlc
home/hyprland/hyprcursor/hyprcursors/vertical-text.hlc home-manager/hyprland/hyprcursor/hyprcursors/vertical-text.hlc
home/hyprland/hyprcursor/hyprcursors/wayland-cursor.hlc home-manager/hyprland/hyprcursor/hyprcursors/wayland-cursor.hlc
home/hyprland/hyprcursor/hyprcursors/xterm.hlc home-manager/hyprland/hyprcursor/hyprcursors/xterm.hlc
home/hyprland/hyprcursor/hyprcursors/zoom-in.hlc home-manager/hyprland/hyprcursor/hyprcursors/zoom-in.hlc
home/hyprland/hyprcursor/hyprcursors/zoom-out.hlc home-manager/hyprland/hyprcursor/hyprcursors/zoom-out.hlc
home/hyprland/hyprcursor/manifest.hl home-manager/hyprland/hyprcursor/manifest.hl
+5 -5
home/hyprland/hypridle/default.nix home-manager/hyprland/hypridle/default.nix
··· 21 21 on-timeout = "loginctl lock-session"; 22 22 } 23 23 # Turn off screens TODO buggy main monitor, turns off and on after resume 24 - # { 25 - # timeout = 120; 26 - # on-timeout = "hyprctl dispatch dpms off"; 27 - # on-resume = "hyprctl dispatch dpms on"; 28 - # } 24 + # { 25 + # timeout = 120; 26 + # on-timeout = "hyprctl dispatch dpms off"; 27 + # on-resume = "hyprctl dispatch dpms on"; 28 + # } 29 29 # Suspend 30 30 { 31 31 timeout = suspendAfter;
home/hyprland/hyprland.conf home-manager/hyprland/hyprland.conf
home/hyprland/hyprlock/default.nix home-manager/hyprland/hyprlock/default.nix
home/hyprland/swaync/default.nix home-manager/hyprland/swaync/default.nix
home/hyprland/swaync/mocha.css home-manager/hyprland/swaync/mocha.css
home/hyprland/waybar/config/config.jsonc home-manager/hyprland/waybar/config/config.jsonc
home/hyprland/waybar/config/mocha.css home-manager/hyprland/waybar/config/mocha.css
home/hyprland/waybar/config/style.css home-manager/hyprland/waybar/config/style.css
home/hyprland/waybar/default.nix home-manager/hyprland/waybar/default.nix
home/nixvim/default.nix home-manager/nixvim/default.nix
home/rofi/catppuccin-mocha.rasi home-manager/rofi/catppuccin-mocha.rasi
home/rofi/config.rasi home-manager/rofi/config.rasi
home/rofi/default.nix home-manager/rofi/default.nix
home/rofi/rofimoji.rc home-manager/rofi/rofimoji.rc
home/starship.toml home-manager/starship.toml
home/wlogout/default.nix home-manager/wlogout/default.nix
home/wlogout/hibernate.svg home-manager/wlogout/hibernate.svg
home/wlogout/lock.svg home-manager/wlogout/lock.svg
home/wlogout/logout.svg home-manager/wlogout/logout.svg
home/wlogout/reboot.svg home-manager/wlogout/reboot.svg
home/wlogout/shutdown.svg home-manager/wlogout/shutdown.svg
home/wlogout/style.css home-manager/wlogout/style.css
home/wlogout/suspend.svg home-manager/wlogout/suspend.svg
hyprland/default.nix modules/hyprland/default.nix
hyprland/wallpaper.nix modules/hyprland/wallpaper.nix
hyprland/waybar.nix modules/hyprland/waybar.nix
keyboard.nix modules/hardware/keyboard.nix
locale.nix modules/locale.nix
+19
modules/default.nix
··· 1 + { ... }: 2 + 3 + { 4 + imports = [ 5 + ./development.nix 6 + ./fonts.nix 7 + ./gnome 8 + ./hardware 9 + ./locale.nix 10 + ./networking.nix 11 + ./nix-helper.nix 12 + ./hyprland 13 + ./sddm.nix 14 + ./security.nix 15 + ./steam.nix 16 + ./stylix.nix 17 + ./terminal 18 + ]; 19 + }
+14
modules/fonts.nix
··· 1 + { pkgs, ... }: 2 + { 3 + 4 + fonts = { 5 + fontconfig.enable = true; 6 + packages = with pkgs; [ 7 + (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) 8 + jetbrains-mono 9 + # The line below will replace the lines above in 25.05 10 + # nerd-fonts.jetbrains-mono 11 + ]; 12 + }; 13 + 14 + }
+10
modules/hardware/default.nix
··· 1 + { ... }: 2 + 3 + { 4 + imports = [ 5 + ./audio.nix 6 + ./graphics 7 + ./hardware-configuration.nix 8 + ./keyboard.nix 9 + ]; 10 + }
+19
modules/hardware/graphics/default.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + imports = [ 5 + ./nvidia.nix 6 + ]; 7 + 8 + # For hardware acceleration 9 + environment.sessionVariables.LIBVA_DRIVER_NAME = "iHD"; 10 + 11 + # Enable OpenGL 12 + hardware.graphics = { 13 + enable = true; 14 + extraPackages = with pkgs; [ 15 + # Used for hardware-acceleration 16 + intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD 17 + ]; 18 + }; 19 + }
+15
modules/hardware/graphics/nvidia.nix
··· 1 + { ... }: 2 + 3 + { 4 + hardware.nvidia = { 5 + # Required 6 + modesetting.enable = true; 7 + # Use closed-source drivers 8 + open = false; 9 + # Enable the Nvidia settings menu 10 + nvidiaSettings = true; 11 + }; 12 + 13 + # Load Nvidia driver for Xorg and Wayland 14 + services.xserver.videoDrivers = [ "nvidia" ]; 15 + }
+10
modules/steam.nix
··· 1 + { ... }: 2 + 3 + { 4 + programs.steam = { 5 + enable = true; 6 + remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play 7 + dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server 8 + localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers 9 + }; 10 + }
+16
modules/stylix.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + stylix = { 5 + enable = true; 6 + image = ../catppuccin.png; 7 + base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml"; 8 + polarity = "dark"; 9 + opacity.terminal = 0.8; 10 + override = { 11 + base02 = "b0b0b0"; # Comments in shell 12 + base03 = "b0b0b0"; # Comments in nvim 13 + base04 = "b0b0b0"; # Secondary text in shell 14 + }; 15 + }; 16 + }
+11
modules/terminal/default.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + imports = [ 5 + ./shell.nix 6 + ]; 7 + 8 + environment.systemPackages = with pkgs; [ 9 + kitty 10 + ]; 11 + }
+1 -3
networking.nix modules/networking.nix
··· 16 16 # Or disable the firewall altogether. 17 17 # networking.firewall.enable = false; 18 18 19 - services.tailscale = { 20 - enable = true; 21 - }; 19 + services.tailscale.enable = true; 22 20 }
nixHelper.nix modules/nix-helper.nix
+1 -1
sddm.nix modules/sddm.nix
··· 6 6 flavor = "mocha"; 7 7 font = "Noto Sans"; 8 8 fontSize = "9"; 9 - background = "${./catppuccin_high.png}"; 9 + background = "${../catppuccin_high.png}"; 10 10 loginBackground = true; 11 11 }) 12 12 ];
+3
security.nix modules/security.nix
··· 2 2 3 3 { 4 4 environment.systemPackages = with pkgs; [ 5 + gnupg 5 6 yubioath-flutter 6 7 ]; 8 + 9 + programs.gnupg.agent.enable = true; 7 10 8 11 security.pam = { 9 12 services = {
-5
starter.nix
··· 1 - { ... }: 2 - 3 - { 4 - imports = [ ]; 5 - }
+4 -1
switch
··· 1 1 #!/usr/bin/env sh 2 2 3 + # Accepts all arguments to nh os switch 4 + # For example --ask to prompt if the user want to switch configs 5 + 3 6 # Rebuild and switch the environment if successful 4 7 git add . 5 8 ./fmt 6 - nh os switch . 9 + nh os switch . "$@"
-7
terminal/default.nix
··· 1 - { ... }: 2 - 3 - { 4 - imports = [ 5 - ./shell.nix 6 - ]; 7 - }
terminal/shell.nix modules/terminal/shell.nix