Flake for my NixOS devices

Update

bwc9876.dev 17a6de0d 4a2826c3

verified
+24 -20
+12 -11
README.md
··· 1 1 # NixOS Config 2 2 3 - This repo contains the flake I use to configure any of my NixOS-configured devices. 3 + This repo contains the flake I use to configure any of my NixOS-configured 4 + devices. 4 5 5 6 ## Structure 6 7 7 8 - flake.nix: Central file for exporting all my configs and anything else I need. 8 9 - lib.nix: Helper functions 9 - - systemconfigs/: All systems this flake configures, each system has some options 10 - that describe it but the main thing that determines what options they set 11 - are _roles_. 12 - - nixosModules/: A set of path-"routed" NixOS modules that represent "roles". 13 - A role is a feature a system can have (ex. the `graphics` role enables 14 - Hyprland, GUI apps, etc). Roles can either be a singular nix file, or a folder 15 - of them if they're complicated. Files named `role1+role2.nix` represent an 16 - _overlap_ role, which is applied if all roles delimited by `+` are turned on. 10 + - systemconfigs/: All systems this flake configures, each system has some 11 + options that describe it but the main thing that determines what options they 12 + set are _roles_. 13 + - nixosModules/: A set of path-"routed" NixOS modules that represent "roles". A 14 + role is a feature a system can have (ex. the `graphics` role enables Hyprland, 15 + GUI apps, etc). Roles can either be a singular nix file, or a folder of them 16 + if they're complicated. Files named `role1+role2.nix` represent an _overlap_ 17 + role, which is applied if all roles delimited by `+` are turned on. 17 18 - base/: This folder contains modules applied unconditionally to all systems. 18 19 - res/: Non-nix files used in the config. Pictures, scripts, etc. 19 20 - pkgs/: Custom nix packages made for my config. ··· 22 23 23 24 ## Implementation 24 25 25 - I'm not going to lie, I have no idea what I'm doing. 26 - Is every feature here implmemented well? Definitely not, but that's okay! 26 + I'm not going to lie, I have no idea what I'm doing. Is every feature here 27 + implmemented well? Definitely not, but that's okay!
+3
nixosModules/imperm.nix
··· 103 103 mode = "0700"; 104 104 } 105 105 ] 106 + ++ (preConf [ 107 + "Cemu" 108 + ]) 106 109 ++ (preShare [ 107 110 "direnv" 108 111 "ow-mod-man"
+9 -9
systemConfigs/black-mesa.nix
··· 56 56 57 57 programs.gamescope = { 58 58 enable = true; 59 - package = pkgs.gamescope.overrideAttrs (new: old: { 60 - src = pkgs.fetchFromGitHub { 61 - owner = "ValveSoftware"; 62 - repo = "gamescope"; 63 - rev = "186f3a3ed0ce8eb5f3a956d3916a3331ea4e3ab2"; 64 - fetchSubmodules = true; 65 - hash = "sha256-zAzIi3syJYtbKjydp19d1OxZvMjXb+eO+mXT/mJPEuA="; 66 - }; 67 - }); 59 + # package = pkgs.gamescope.overrideAttrs (new: old: { 60 + # src = pkgs.fetchFromGitHub { 61 + # owner = "ValveSoftware"; 62 + # repo = "gamescope"; 63 + # rev = "186f3a3ed0ce8eb5f3a956d3916a3331ea4e3ab2"; 64 + # fetchSubmodules = true; 65 + # hash = "sha256-zAzIi3syJYtbKjydp19d1OxZvMjXb+eO+mXT/mJPEuA="; 66 + # }; 67 + # }); 68 68 capSysNice = true; 69 69 }; 70 70