mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
description = "Fully Declarative YOLO";
|
|
|
|
inputs =
|
|
{
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, disko }:
|
|
let
|
|
system = "x86_64-linux";
|
|
overlays = [
|
|
(self: super: {
|
|
nur = import (builtins.fetchTarball {
|
|
url = "https://github.com/nix-community/NUR/archive/master.tar.gz";
|
|
sha256 = "0a4jcks8nb4sb581gvd8kza9sw41bc8d1jdz4bv16plb9anfvcc0";
|
|
});
|
|
})
|
|
];
|
|
pkgs = import nixpkgs {
|
|
inherit system overlays;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
};
|
|
|
|
in
|
|
{
|
|
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
|
inherit pkgs;
|
|
modules = [
|
|
./sysConfig/desktop
|
|
disko.nixosModules.disko
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.brain = import ./homeConfig/home.nix;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|