Fix allowUnfree

This commit is contained in:
Thomas Avé 2026-06-22 13:29:23 +02:00
parent e7cdc999c0
commit f101c79e04
Signed by: thomasave
SSH Key Fingerprint: SHA256:bvIbWy6TO9+PdMTPzWy6dqkRlVQ3eSky+vQcc9aRIiE
2 changed files with 14 additions and 11 deletions

View File

@ -30,11 +30,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1781268660, "lastModified": 1782062955,
"narHash": "sha256-xtnwgsKl4DJ75FSj8paONvVcCzAw0psGJOzEnplyRSU=", "narHash": "sha256-FGZHls4eQJ8y3pvf5h3b83PfXlve3vD/Gj3g1qoAK6o=",
"owner": "aylur", "owner": "aylur",
"repo": "astal", "repo": "astal",
"rev": "948805f6e8cf7f8c08eba06ab1db1eef0e75e3a0", "rev": "11842ae3045c1367fb3a62a2302dba0d9ccb4a33",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -111,11 +111,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1781557312, "lastModified": 1782103446,
"narHash": "sha256-QOIRYSUFSq7L5mY3dZymaVhcnne3tPgoR9riB0WocjA=", "narHash": "sha256-+vMR3KPBVoY9nJrQI9qje5H1vmv51dJgMYkUuYimtJg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "c03e4752899e55705dfa63979abd885c582a5c48", "rev": "d8dac1f668fd861369571be3678ec75b1573e7e3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -163,11 +163,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1781074563, "lastModified": 1781577229,
"narHash": "sha256-md8WlXOlfnIeHeOScMTTHFyf2d6iaTwPl2apR5EQ3P4=", "narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9ae611a455b90cf061d8f332b977e387bda8e1ca", "rev": "567a49d1913ce81ac6e9582e3553dd90a955875f",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -38,7 +38,7 @@
commonModules = host: user: [ commonModules = host: user: [
./hosts/${host}/hardware-configuration.nix ./hosts/${host}/hardware-configuration.nix
({pkgs, ...}: { ({pkgs, ...}: {
pkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
networking.hostName = host; networking.hostName = host;
time.timeZone = "Asia/Bangkok"; time.timeZone = "Asia/Bangkok";
nix.settings = { nix.settings = {
@ -111,7 +111,10 @@
}; };
mkHome = architecture: modulePath: mkHome = architecture: modulePath:
home-manager.lib.homeManagerConfiguration { home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${architecture}; pkgs = import nixpkgs {
system = architecture;
config.allowUnfree = true;
};
modules = [modulePath]; modules = [modulePath];
extraSpecialArgs = {inherit inputs;}; extraSpecialArgs = {inherit inputs;};
}; };