desktop-2024-08-30-13-22-30

This commit is contained in:
Alexander Szczepanski
2024-08-30 13:22:30 +02:00
parent adf3ae9214
commit 4298f9dc77
12 changed files with 198 additions and 82 deletions

View File

@ -5,31 +5,42 @@
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware/master";
# # Home manager
# home-manager.url = "github:nix-community/home-manager/release-24.05";
# home-manager.inputs.nixpkgs.follows = "nixpkgs-unstable";
# Home manager
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ self
, nixpkgs
, nixpkgs-unstable
# , home-manager
, ...
} @ inputs:
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, nixos-hardware, ... } @ inputs:
let
inherit (self) outputs;
system = "x86_64-linux";
# Supported systems for your flake packages, shell, etc.
systems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
# This is a function that generates an attribute by calling a function you
# pass to it, with each system as an argument
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
overlays = import ./overlays { inherit inputs; };
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs outputs; };
# > Our main nixos configuration file <
modules = [ ./machine/desktop.nix ];
modules = [
./machine/desktop.nix
];
};
};
};