char/flake
nixos flake
git clone https://git.t4t.associates/char/flake
378b456
main
1{ 2description = "charlotte's NixOS flake" ; 3inputs = { 4nixpkgs . url = "github:NixOS/nixpkgs/nixos-26.05" ; 5nixpkgs-unstable . url = "github:NixOS/nixpkgs/nixos-unstable" ; 6 7disko . url = "github:nix-community/disko" ; 8disko . inputs . nixpkgs . follows = "nixpkgs" ; 9 10nixos-hardware . url = "github:NixOS/nixos-hardware/master" ; 11 12lanzaboote . url = "github:nix-community/lanzaboote/v1.0.0" ; 13lanzaboote . inputs . nixpkgs . follows = "nixpkgs" ; 14 15microvm . url = "github:microvm-nix/microvm.nix" ; 16microvm . inputs . nixpkgs . follows = "nixpkgs" ; 17}; 18outputs = 19{ self 20, nixpkgs 21, nixpkgs-unstable 22, disko 23, nixos-hardware 24, lanzaboote 25, microvm 26, ... 27} @inputs : 28{ 29nixosConfigurations = { 30runestone = nixpkgs . lib . nixosSystem { 31system = "x86_64-linux" ; 32 33specialArgs = { 34user-pkgs = self . packages . "x86_64-linux" ; 35unstable-pkgs = nixpkgs-unstable . legacyPackages . "x86_64-linux" ; 36}; 37 38modules = [ 39({ ...} :{ 40system . stateVersion = "24.05" ; 41}) 42 43./profiles/common/base.nix 44./profiles/common/dev.nix 45./profiles/common/locale.nix 46./profiles/common/networking.nix 47 48./profiles/runestone/hardware-configuration.nix 49./profiles/runestone/base.nix 50./profiles/runestone/borg.nix 51 52microvm . nixosModules . host 53./profiles/runestone/microvms.nix 54]; 55}; 56 57onyx = nixpkgs . lib . nixosSystem { 58system = "x86_64-linux" ; 59 60specialArgs = { 61user-pkgs = self . packages . "x86_64-linux" ; 62unstable-pkgs = import nixpkgs-unstable { 63system = "x86_64-linux" ; 64config . allowUnfree = true ; 65}; 66}; 67 68modules = [ 69({ ...} :{ 70system . stateVersion = "25.11" ; 71}) 72 73nixos-hardware . nixosModules . framework-desktop-amd-ai-max-300-series 74 75disko . nixosModules . disko 76./profiles/onyx/disks.nix 77 78./profiles/common/base.nix 79./profiles/common/dev.nix 80./profiles/common/locale.nix 81./profiles/onyx/networking.nix 82 83lanzaboote . nixosModules . lanzaboote 84 85./profiles/onyx/hardware-configuration.nix 86./profiles/onyx/base.nix 87./profiles/onyx/secure-boot.nix 88./profiles/onyx/nvidia.nix 89./profiles/onyx/hyper-v.nix 90./profiles/onyx/borg.nix 91./profiles/onyx/git-server.nix 92]; 93}; 94}; 95 96packages = { 97x86_64-linux = import ./packages/default.nix { 98pkgs = import nixpkgs { system = "x86_64-linux" ; }; 99}; 100}; 101}; 102}