NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

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

feat(flake); officially enable support for home-manager configs via flakes

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+28 -6
+28 -6
flake.nix
··· 7 7 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 8 8 9 9 # home-manager 10 - home-manager.url = "github:nix-community/home-manager/master"; 11 - # make sure to be in sync with our nixpkgs itself. 12 - home-manager.inputs.nixpkgs.follows = "nixpkgs"; 10 + home-manager = { 11 + url = "github:nix-community/home-manager/master"; 12 + inputs.nixpkgs.follows = "nixpkgs"; 13 + }; 13 14 14 15 # Determinate Nix 15 16 determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1"; ··· 19 20 vscode-server.url = "github:nix-community/nixos-vscode-server"; 20 21 21 22 # nix-ld 22 - nix-ld.url = "github:Mic92/nix-ld"; 23 - # this line assume that you also have nixpkgs as an input 24 - nix-ld.inputs.nixpkgs.follows = "nixpkgs"; 23 + nix-ld = { 24 + url = "github:Mic92/nix-ld"; 25 + inputs.nixpkgs.follows = "nixpkgs"; 26 + }; 25 27 }; 26 28 27 29 outputs = { ··· 56 58 # one-liners? 57 59 { programs.nix-ld.dev.enable = true; } 58 60 ]; 61 + }; 62 + }; 63 + homeConfigurations = { 64 + gildedguy = home-manager.lib.homeManagerConfiguration { 65 + inherit (nixpkgs.legacyPackages.x86_64-linux) pkgs; 66 + 67 + modules = [ 68 + ./shared/home-manager/main.nix 69 + { 70 + home.username = "gildedguy"; 71 + home.homeDirectory = "/home/gildedguy"; 72 + } 73 + ]; 74 + 75 + extraSpecialArgs = { 76 + home = { 77 + useUserPackages = true; 78 + useGlobalPkgs = true; 79 + }; 80 + }; 59 81 }; 60 82 }; 61 83 };