Add nix-index-database rather than building locally

Use latest nixVersion in stable channel

Update flake inputs
This commit is contained in:
Evie Litherland-Smith 2024-07-31 06:45:32 +01:00
parent 2b655732d5
commit 017972db19
2 changed files with 37 additions and 7 deletions

View file

@ -73,6 +73,26 @@
"url": "https://git.xenia.me.uk/pixelifytica/iosevka.git" "url": "https://git.xenia.me.uk/pixelifytica/iosevka.git"
} }
}, },
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1722136042,
"narHash": "sha256-x3FmT4QSyK28itMiR5zfYhUrG5nY+2dv+AIcKfmSp5A=",
"owner": "nix-community",
"repo": "nix-index-database",
"rev": "c0ca47e8523b578464014961059999d8eddd4aae",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-index-database",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717602782, "lastModified": 1717602782,
@ -91,11 +111,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1721949857, "lastModified": 1722221733,
"narHash": "sha256-DID446r8KsmJhbCzx4el8d9SnPiE8qa6+eEQOJ40vR0=", "narHash": "sha256-sga9SrrPb+pQJxG1ttJfMPheZvDOxApFfwXCFO0H9xw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a1cc729dcbc31d9b0d11d86dc7436163548a9665", "rev": "12bf09802d77264e441f48e25459c10c93eada2e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -115,11 +135,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1721724566, "lastModified": 1722359438,
"narHash": "sha256-6H+OTxXkOrh3P+15bhkQJY7OaBrQVzx4Pz+pCn6rtIg=", "narHash": "sha256-EOf9LC4eSQPJIdtL1PZ3wK7g+o0Sqac83T+hz7twvbc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "plasma-manager", "repo": "plasma-manager",
"rev": "b967e042896de0f64513d4596e3d1f3eae445d1c", "rev": "110d50c34faaa6f4e268bbcf008db3c26c8f9d00",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -133,6 +153,7 @@
"base16": "base16", "base16": "base16",
"home-manager": "home-manager", "home-manager": "home-manager",
"iosevka-custom": "iosevka-custom", "iosevka-custom": "iosevka-custom",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"plasma-manager": "plasma-manager", "plasma-manager": "plasma-manager",
"tt-schemes": "tt-schemes" "tt-schemes": "tt-schemes"

View file

@ -19,6 +19,10 @@
home-manager.follows = "home-manager"; home-manager.follows = "home-manager";
}; };
}; };
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
iosevka-custom.url = "git+https://git.xenia.me.uk/pixelifytica/iosevka.git"; iosevka-custom.url = "git+https://git.xenia.me.uk/pixelifytica/iosevka.git";
base16.url = "github:SenchoPens/base16.nix"; base16.url = "github:SenchoPens/base16.nix";
tt-schemes = { tt-schemes = {
@ -32,6 +36,7 @@
nixpkgs, nixpkgs,
home-manager, home-manager,
plasma-manager, plasma-manager,
nix-index-database,
iosevka-custom, iosevka-custom,
base16, base16,
tt-schemes, tt-schemes,
@ -104,7 +109,10 @@
networking = { networking = {
inherit hostName; inherit hostName;
}; };
nix.settings.trusted-users = [ username ]; nix = {
package = pkgs.nixVersions.latest;
settings.trusted-users = [ username ];
};
services.greetd.settings.initial_session.user = username; services.greetd.settings.initial_session.user = username;
programs.${loginShell} = lib.mkIf (loginShell != "bash") { enable = true; }; programs.${loginShell} = lib.mkIf (loginShell != "bash") { enable = true; };
users.users.${username} = { users.users.${username} = {
@ -133,6 +141,7 @@
users.${username} = { users.${username} = {
imports = [ imports = [
base16.homeManagerModule base16.homeManagerModule
nix-index-database.hmModules.nix-index
{ scheme = "${tt-schemes}/base16/one-light.yaml"; } { scheme = "${tt-schemes}/base16/one-light.yaml"; }
./home/${hostName}.nix ./home/${hostName}.nix
]; ];