Files
nixos-4screen/flake.nix
2026-02-09 16:31:37 +11:00

36 lines
917 B
Nix

{
description = "sam-4screen-desktop NixOS + Home Manager flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
in
{
nixosConfigurations.sam-4screen-desktop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
# Allow unfree (Chrome/Spotify/VSCode/NVIDIA, etc.)
{ nixpkgs.config.allowUnfree = true; }
./hosts/sam-4screen-desktop/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.sam = import ./home/sam/home.nix;
}
];
};
};
}