Fixes to make it build.

This commit is contained in:
2024-07-30 09:27:28 +01:00
parent a55ffda27f
commit 73f3f28b13
2 changed files with 8 additions and 25 deletions

View File

@@ -4,7 +4,7 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager";
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
@@ -12,7 +12,8 @@
outputs = { self, nixpkgs, home-manager }:
let
username = "ppetru";
system = "x64_64-linux";
homeDirectory = "/home/${username}";
system = "x86_64-linux";
stateVersion = "24.05";
pkgs = import nixpkgs {
@@ -23,9 +24,6 @@
};
};
homeDirPrefix = if pkgs.stdenv.hostPlatform.isDarwin then "/Users" else "/home";
homeDirectory = "/${homeDirPrefix}/${username}";
home = (import ./home.nix {
inherit homeDirectory pkgs stateVersion system username;
});