feat(nix): add nixos-hardware for framework 16
This commit is contained in:
parent
5ff66db281
commit
92ccb0b490
2 changed files with 28 additions and 6 deletions
17
flake.lock
generated
17
flake.lock
generated
|
@ -162,6 +162,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-hardware": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1757103352,
|
||||||
|
"narHash": "sha256-PtT7ix43ss8PONJ1VJw3f6t2yAoGH+q462Sn8lrmWmk=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"rev": "11b2a10c7be726321bb854403fdeec391e798bf0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741379970,
|
"lastModified": 1741379970,
|
||||||
|
@ -199,6 +215,7 @@
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils_2",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
17
flake.nix
17
flake.nix
|
@ -12,17 +12,22 @@
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
agenix.url = "github:yaxitech/ragenix";
|
agenix.url = "github:yaxitech/ragenix";
|
||||||
|
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, flake-utils, agenix, ... }@inputs:
|
outputs = { self, nixpkgs, home-manager, flake-utils, agenix, nixos-hardware
|
||||||
let inherit (self) outputs;
|
, ... }@inputs:
|
||||||
|
let
|
||||||
|
coreModules =
|
||||||
|
[ home-manager.nixosModules.default agenix.nixosModules.default ];
|
||||||
|
inherit (self) outputs;
|
||||||
in {
|
in {
|
||||||
nixosConfigurations.minji = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.minji = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { inputs = inputs; };
|
specialArgs = { inputs = inputs; };
|
||||||
modules = [
|
modules = coreModules ++ [
|
||||||
home-manager.nixosModules.default
|
nixos-hardware.nixosModules.framework-16-7040-amd
|
||||||
agenix.nixosModules.default
|
|
||||||
./nix/hosts/common/sys.nix
|
./nix/hosts/common/sys.nix
|
||||||
./nix/hosts/minji/sys.nix
|
./nix/hosts/minji/sys.nix
|
||||||
];
|
];
|
||||||
|
@ -31,7 +36,7 @@
|
||||||
nixosConfigurations.chaewon = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.chaewon = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { inputs = inputs; };
|
specialArgs = { inputs = inputs; };
|
||||||
modules = [
|
modules = coreModules ++ [
|
||||||
home-manager.nixosModules.default
|
home-manager.nixosModules.default
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
./nix/hosts/common/sys.nix
|
./nix/hosts/common/sys.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue