nixos_PC/flake.nix
2024-08-24 12:54:21 +02:00

47 lines
1.4 KiB
Nix

{
inputs = {
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
# url = "github:nix-community/home-manager/release-24.05";
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
plasma-manager = {
url = "github:nix-community/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
};
outputs = inputs@{ self, nixpkgs, home-manager, plasma-manager, ... }: {
nixosConfigurations.jry-thinkpad = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [
plasma-manager.homeManagerModules.plasma-manager
];
};
}
( { config, ... }:
let hostname = "jry-thinkpad";
in {
system.stateVersion = "24.05";
networking.hostName = hostname;
imports = [
./shared/configuration.nix
./${hostname}/configuration.nix
./${hostname}/hardware-configuration.nix
];
} )
];
};
};
}
# vim: tabstop=2 softtabstop=2