Compare commits

..

No commits in common. "5176e7cdf8bef4955bde87649b9e5e1b61646e0e" and "f6ea49629d59b7e44fc437ebfe3f4c38e7056040" have entirely different histories.

6 changed files with 30 additions and 42 deletions

View File

@ -1,5 +1,5 @@
{
description = "My NixOS desktop and server configs";
description = "A simple NixOS flake";
inputs = {
@ -28,59 +28,47 @@
};
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@attrs:
outputs = { self, nixpkgs, home-manager, disko, nixos-hardware, ... }@inputs:
let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
forAllSystemsUnstable = nixpkgs-unstable.lib.genAttrs supportedSystems;
pkgs = forAllSystems (system: import nixpkgs { inherit system; });
pkgs-unstable = forAllSystemsUnstable (system: import nixpkgs-unstable { inherit system; });
inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"
];
inherit (nixpkgs) lib;
configVars = import /home/willifan/.nix-config/vars { inherit inputs lib; };
specialArgs = { inherit inputs outputs configVars nixpkgs; };
in
{
nixosConfigurations = {
Lenni = let
system = "x86_64-linux";
in
nixpkgs.lib.nixosSystem {
specialArgs = {
hostname = "Lenni";
inherit system;
};
Lenni = lib.nixosSystem {
inherit specialArgs;
modules = [
attrs.home-manager.nixosModules.home-manager
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
attrs.disko.nixosModules.disko
attrs.nixos-hardware.nixosModules.framework-12th-gen-intel
disko.nixosModules.disko
nixos-hardware.nixosModules.framework-12th-gen-intel
./hosts
./users/willifan
];
};
Puenktchen = let
system = "x86_64-linux";
in
nixpkgs.lib.nixosSystem {
specialArgs = {
hostname = "Puenktchen";
inherit system;
};
Puenktchen = lib.nixosSystem {
inherit specialArgs;
modules = [
attrs.home-manager.nixosModules.home-manager
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
attrs.disko.nixosModules.disko
attrs.nixos-hardware.nixosModules.common-cpu-amd
attrs.nixos-hardware.nixosModules.common-cpu-amd-pstate
attrs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
attrs.nixos-hardware.nixosModules.common-gpu-amd
disko.nixosModules.disko
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-cpu-amd-pstate
nixos-hardware.nixosModules.common-cpu-amd-zenpower
nixos-hardware.nixosModules.common-gpu-amd
./hosts
./users/willifan
];

View File

@ -1,6 +1,6 @@
{ pkgs, hostname, ... }:
{ pkgs, configVars, ... }:
{
networking.hostName = hostname;
networking.hostName = configVars.hostname;
imports = [
./nix-ld.nix
./boot.nix

View File

@ -1,7 +1,7 @@
{ pkgs, hostname, ... }:
{ pkgs, configVars, ... }:
{
imports = [
./common
./${hostname}
./${configVars.hostname}
];
}

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, home-manager-unstable, ... }:
{

View File

@ -1,7 +1,7 @@
{ pkgs, hostname, ... }:
{ pkgs, configVars, ... }:
{
imports = [
./common
./${hostname}
./${configVars.hostname}
];
}

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, home-manager-unstable, ... }:
{
imports = [