Initial Commit
This commit is contained in:
parent
0b2e96ffc4
commit
e705cfd463
11 changed files with 595 additions and 0 deletions
48
flake.nix
Normal file
48
flake.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable";
|
||||
stylix.url = "github:danth/stylix";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
programsdb = {
|
||||
url = "github:wamserma/flake-programs-sqlite";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
stylix,
|
||||
self,
|
||||
...
|
||||
} @ inputs: let
|
||||
system = hostname:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {inherit inputs;};
|
||||
modules =
|
||||
[
|
||||
"${self}/${hostname}/configuration.nix"
|
||||
"${self}/${hostname}/hardware-configuration.nix"
|
||||
./common.nix
|
||||
]
|
||||
++ nixpkgs.lib.optionals (builtins.pathExists "${self}/${hostname}/home-manager.nix") [
|
||||
home-manager.nixosModules.home-manager
|
||||
"${self}/${hostname}/home-manager.nix"
|
||||
]
|
||||
++ nixpkgs.lib.optionals (builtins.pathExists "${self}/${hostname}/stylix.nix") [
|
||||
stylix.nixosModules.stylix
|
||||
"${self}/${hostname}/stylix.nix"
|
||||
];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
"quadraticpc" = system "quadraticpc";
|
||||
};
|
||||
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue