mirror of
https://github.com/morten-olsen/nixos-config.git
synced 2026-02-08 00:36:27 +01:00
init
This commit is contained in:
38
flake.nix
Normal file
38
flake.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# https://github.com/michaelpj/nixos-config
|
||||
# https://github.com/HeinzDev/Hyprland-dotfiles/blob/main/nixos/configuration.nix
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs = {
|
||||
url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
nixos-hardware = {
|
||||
url = "github:NixOS/nixos-hardware";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixos-hardware, home-manager }: {
|
||||
nixosConfigurations = {
|
||||
alice-xps = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
(import ./machines/xps/configuration.nix)
|
||||
({
|
||||
# Let 'nixos-version --json' know about the Git revision
|
||||
# of this flake.
|
||||
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
||||
})
|
||||
({
|
||||
# For compatibility with other things, puts nixpkgs into NIX_PATH
|
||||
environment.etc.nixpkgs.source = nixpkgs;
|
||||
nix.nixPath = ["nixpkgs=/etc/nixpkgs"];
|
||||
})
|
||||
];
|
||||
specialArgs = { inherit nixos-hardware home-manager; };
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user