Nix Flakes configuration for MacOS, NixOS and WSL
0
fork

Configure Feed

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

feat: made some cleaning

+34 -33
+9 -22
flake.nix
··· 34 34 nixosConfigurations = { 35 35 loki = nixpkgs.lib.nixosSystem { 36 36 system = "x86_64-linux"; 37 - specialArgs = { inherit inputs; }; 37 + specialArgs = { inherit inputs self; }; 38 38 modules = [ 39 - inputs.home-manager.nixosModules.home-manager 40 39 ./hosts/x86_64-linux/loki 41 - { 42 - nixpkgs.overlays = [ self.outputs.overlays.unstable-packages self.outputs.overlays.dwl ]; 43 - } 44 40 ./modules/nixos/desktop/dwl 45 41 ]; 46 42 }; 47 43 44 + # TODO: rework configuration not being usable at the moment 45 + # nyx = nixpkgs.lib.nixosSystem { 46 + # specialArgs = { inherit inputs; }; 47 + # modules = [ ./hosts/x86_64-linux/nyx ]; 48 + # }; 49 + 48 50 # vali = nixpkgs.lib.nixosSystem { 49 51 # system = "x86_64-linux"; 50 52 # specialArgs = { inherit inputs; }; 51 - # modules = [ 52 - # inputs.wsl.nixosModules.wsl 53 - # inputs.home-manager.nixosModules.home-manager 54 - # ./hosts/x86_64-linux/vali 55 - # ]; 53 + # modules = [ ./hosts/x86_64-linux/vali ]; 56 54 # }; 57 - 58 - nyx = nixpkgs.lib.nixosSystem { 59 - specialArgs = { inherit inputs; }; 60 - modules = [ 61 - inputs.home-manager.nixosModules.home-manager 62 - ./hosts/x86_64-linux/nyx 63 - ]; 64 - }; 65 55 66 56 # Raspberry Pi 3b+ 67 57 # narfi = nixpkgs.lib.nixosSystem { ··· 77 67 njord = darwin.lib.darwinSystem { 78 68 system = "aarch64-darwin"; 79 69 specialArgs = { inherit inputs; }; 80 - modules = [ 81 - ./hosts/aarch64-darwin/njord 82 - inputs.home-manager.darwinModules.home-manager 83 - ]; 70 + modules = [ ./hosts/aarch64-darwin/njord ]; 84 71 }; 85 72 }; 86 73 };
+1
hosts/aarch64-darwin/njord/default.nix
··· 3 3 imports = [ 4 4 ./homebrew 5 5 ./system 6 + inputs.home-manager.darwinModules.home-manager 6 7 ]; 7 8 8 9 # Home Manager
+5 -1
hosts/x86_64-linux/loki/default.nix
··· 1 1 { self, inputs, pkgs, config, ... }: 2 2 { 3 - imports = [ ./hardware.nix ]; 3 + imports = [ 4 + ./hardware.nix 5 + inputs.home-manager.nixosModules.home-manager 6 + ]; 4 7 5 8 security.polkit.enable = true; 6 9 programs.xwayland.enable = true; ··· 138 141 139 142 # Enable unfree packages 140 143 nixpkgs.config.allowUnfree = true; 144 + nixpkgs.overlays = [ self.outputs.overlays.unstable-packages self.outputs.overlays.dwl ]; 141 145 142 146 # Perform garbage collection weekly to maintain low disk usage 143 147 nix.gc = {
+4 -1
hosts/x86_64-linux/nyx/default.nix
··· 2 2 with lib; 3 3 with lib.${namespace}; 4 4 { 5 - imports = [ ./hardware.nix ]; 5 + imports = [ 6 + ./hardware.nix 7 + inputs.home-manager.nixosModules.home-manager 8 + ]; 6 9 7 10 asgard = { 8 11 system = {
+5
hosts/x86_64-linux/vali/configuration.nix
··· 8 8 { config, lib, pkgs, ... }: 9 9 10 10 { 11 + imports = [ 12 + inputs.wsl.nixosModules.wsl 13 + inputs.home-manager.nixosModules.home-manager 14 + ]; 15 + 11 16 wsl.enable = true; 12 17 wsl.defaultUser = "vali"; 13 18
+1 -9
overlays/default.nix
··· 1 1 { inputs, outputs, ... }: 2 2 { 3 - # The unstable nixpkgs set (declared in the flake inputs) will 4 - # be accessible through `pkgs.unstable` 5 - unstable-packages = final: prev: { 6 - unstable = import inputs.unstable { 7 - inherit (final) system; 8 - config.allowUnfree = true; 9 - }; 10 - }; 11 - 3 + unstable-packages = import ./unstable { inherit inputs outputs; }; 12 4 dwl = import ./dwl { inherit inputs outputs; }; 13 5 }
+9
overlays/unstable/default.nix
··· 1 + { inputs, outputs, ... }: 2 + # The unstable nixpkgs set (declared in the flake inputs) will 3 + # be accessible through `pkgs.unstable` 4 + final: prev: { 5 + unstable = import inputs.unstable { 6 + inherit (final) system; 7 + config.allowUnfree = true; 8 + }; 9 + }