my nixos config
0
fork

Configure Feed

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

attempt to do what the lix module does without the lix module

chfour 0389369f 8e5b1367

+19 -14
+19 -14
flake.nix
··· 4 4 5 5 nixpkgs-master.url = "github:NixOS/nixpkgs/master"; 6 6 7 - lix-module = { 8 - url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz"; 9 - inputs.nixpkgs.follows = "nixpkgs"; 10 - }; 11 - 12 7 nixos-hardware.url = "github:NixOS/nixos-hardware/master"; 13 8 14 9 home-manager = { ··· 17 12 }; 18 13 }; 19 14 20 - outputs = { self, nixpkgs, nixpkgs-master, lix-module, nixos-hardware, home-manager, ... }: { 15 + outputs = { self, nixpkgs, nixpkgs-master, nixos-hardware, home-manager, ... }: { 21 16 nixosModules = { 22 - declarativeHome = { ... }: { 17 + homeManager = { ... }: { 23 18 imports = [ home-manager.nixosModules.home-manager ]; 24 19 config = { 25 20 home-manager.useGlobalPkgs = true; 26 21 home-manager.useUserPackages = true; 27 22 }; 28 23 }; 24 + lix = { ... }: { 25 + config = { 26 + nixpkgs.overlays = [ (final: prev: { 27 + # this is what the lix nixos module does 28 + nixVersions = prev.nixVersions // { 29 + stable = final.lixPackageSets.stable.lix; 30 + stable_upstream = prev.nixVersions.stable; 31 + }; 32 + }) ]; 33 + }; 34 + }; 29 35 defaults = { ... }: { 30 - imports = [ lix-module.nixosModules.default ]; 31 36 config = { 32 37 nixpkgs.config.allowUnfree = true; 33 38 nix.settings = { ··· 39 44 }; 40 45 }; 41 46 nixosConfigurations = { 42 - "foxbox" = nixpkgs.lib.nixosSystem rec { 47 + foxbox = nixpkgs.lib.nixosSystem rec { 43 48 system = "x86_64-linux"; 44 49 specialArgs = { 45 50 pkgs-master = nixpkgs-master.legacyPackages.${system}; 46 51 }; 47 52 modules = with self.nixosModules; [ 48 - defaults 53 + defaults lix homeManager 49 54 ./machines/foxbox 50 55 nixos-hardware.nixosModules.lenovo-thinkpad-e14-intel 51 - declarativeHome ./users/chfour 56 + ./users/chfour 52 57 ]; 53 58 }; 54 - "fovps" = nixpkgs.lib.nixosSystem rec { 59 + fovps = nixpkgs.lib.nixosSystem rec { 55 60 system = "x86_64-linux"; 56 61 modules = with self.nixosModules; [ 57 - defaults 62 + defaults lix homeManager 58 63 ./machines/fovps 59 - declarativeHome ./users/chfour 64 + ./users/chfour 60 65 ]; 61 66 }; 62 67 };