sisyphus/nixos/flake.nix

51 lines
1.1 KiB
Nix
Raw Normal View History

2023-03-06 21:00:44 +01:00
{
description = "System configuration";
inputs = {
home-manager.url = "github:nix-community/home-manager/release-22.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-03-07 23:12:34 +01:00
nixpkgs.url = "nixpkgs/nixos-22.11";
nur.url = "github:nix-community/NUR";
2023-03-06 21:00:44 +01:00
};
2023-03-12 19:46:21 +01:00
outputs = { self, nixpkgs, home-manager, nur, ... }:
2023-03-06 21:00:44 +01:00
let
system = "x86_64-linux"; # Use flake tools?
pkgs = import nixpkgs {
inherit system;
2023-03-07 23:12:34 +01:00
config.allowUnfree = true;
2023-03-06 21:00:44 +01:00
};
lib = nixpkgs.lib;
2023-03-07 23:12:34 +01:00
in rec {
2023-03-06 21:00:44 +01:00
homeManagerConfigurations = {
tdpeuter = home-manager.lib.homeManagerConfiguration {
2023-03-07 23:12:34 +01:00
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
2023-03-06 21:00:44 +01:00
modules = [
./users/tdpeuter/home.nix
{
home = {
username = "tdpeuter";
homeDirectory = "/home/tdpeuter";
};
}
];
};
};
nixosConfigurations = {
Tibo-NixTest = lib.nixosSystem { # Use hostname
inherit system;
2023-03-12 19:46:21 +01:00
modules = [
2023-03-06 21:00:44 +01:00
./system/configuration.nix
2023-03-12 19:46:21 +01:00
nur.nixosModules.nur
2023-03-06 21:00:44 +01:00
];
};
};
};
}