Add nixos configuration and build script

This commit is contained in:
2024-12-26 12:32:58 +01:00
parent c828dfc2e6
commit 1483a5c46a
4 changed files with 770 additions and 0 deletions

22
nixos/flake.nix Normal file
View File

@@ -0,0 +1,22 @@
{
description = "My nixos config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
xremap-flake.url = "github:xremap/nix-flake";
};
outputs = { self, nixpkgs, ... } @ inputs:
let
inherit (self) outputs;
system = "x86_64-linux";
in
{
nixosConfigurations = {
nix = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./nixos/configuration.nix ];
};
};
};
}