Begin to variabilize configurations
This commit is contained in:
parent
a5480798a9
commit
4be4b1cc1c
2 changed files with 9 additions and 3 deletions
|
@ -7,10 +7,16 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
||||||
|
let
|
||||||
|
stateVersion = "23.05";
|
||||||
|
in rec {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
mrmeeseeks = nixpkgs.lib.nixosSystem {
|
mrmeeseeks = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
inherit stateVersion;
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/mrmeeseeks/configuration.nix
|
./hosts/mrmeeseeks/configuration.nix
|
||||||
home-manager.nixosModule
|
home-manager.nixosModule
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, stateVersion, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.ephase = {
|
users.ephase = {
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = stateVersion;
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/home/desktop
|
../../modules/home/desktop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue