This commit is contained in:
cnst
2024-07-31 18:37:22 +02:00
parent d0a57deacd
commit 0eeca7d8a4
7 changed files with 40 additions and 24 deletions

View File

@@ -0,0 +1,11 @@
{
environment.variables.FLAKE = "/home/cnst/.nix-config";
programs = {
nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/cnst/.nix-config";
};
};
}

View File

@@ -6,7 +6,6 @@
... ...
}: { }: {
imports = [ imports = [
./nh.nix
./substituters.nix ./substituters.nix
./nixpkgs.nix ./nixpkgs.nix
]; ];

View File

@@ -1,13 +0,0 @@
let
homeDir = builtins.getEnv "HOME";
in {
environment.variables.FLAKE = "${homeDir}/.nix-config";
programs = {
nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "${homeDir}/.nix-config";
};
};
}

View File

@@ -0,0 +1,11 @@
{
environment.variables.FLAKE = "/home/toothpick/.nix-config";
programs = {
nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/toothpick/.nix-config";
};
};
}

View File

@@ -1,5 +1,5 @@
let let
desktop = [ shared = [
./core ./core
./locale ./locale
@@ -17,10 +17,20 @@ let
]; ];
laptop = laptop =
desktop shared
++ [ ++ [
./services/fwupd ./services/fwupd
]; ];
cnix =
shared
++ [
./core/system/cnix-nh.nix
];
toothpc =
shared
++ [
./core/system/toothpc-nh.nix
];
in { in {
inherit desktop laptop; inherit shared laptop cnix toothpc;
} }

View File

@@ -10,7 +10,7 @@
mod = "${self}/nixos"; mod = "${self}/nixos";
# get the basic config to build on top of # get the basic config to build on top of
inherit (import "${self}/nixos") desktop laptop; inherit (import "${self}/nixos") laptop cnix toothpc;
# get these into the module system # get these into the module system
specialArgs = {inherit inputs self;}; specialArgs = {inherit inputs self;};
@@ -18,7 +18,7 @@
cnix = nixosSystem { cnix = nixosSystem {
inherit specialArgs; inherit specialArgs;
modules = modules =
desktop cnix
++ [ ++ [
./cnix ./cnix
"${mod}/core/lanzaboote.nix" "${mod}/core/lanzaboote.nix"
@@ -46,7 +46,7 @@
toothpc = nixosSystem { toothpc = nixosSystem {
inherit specialArgs; inherit specialArgs;
modules = modules =
desktop toothpc
++ [ ++ [
./toothpc ./toothpc
"${mod}/core" "${mod}/core"

View File

@@ -1,6 +1,4 @@
let {config, ...}: {
homeDir = builtins.getEnv "HOME";
in {
services.xserver = { services.xserver = {
enable = true; enable = true;
videoDrivers = ["amdgpu"]; videoDrivers = ["amdgpu"];
@@ -8,7 +6,7 @@ in {
extraLayouts.hhkbse = { extraLayouts.hhkbse = {
description = "HHKBse by cnst"; description = "HHKBse by cnst";
languages = ["se"]; languages = ["se"];
symbolsFile = "${homeDir}/.nix-config/nixos/hosts/cnix/xkb/symbols/hhkbse"; symbolsFile = /home/cnst/.nix-config/nixos/hosts/cnix/xkb/symbols/hhkbse;
}; };
layout = "hhkbse"; layout = "hhkbse";
# dir = "/home/cnst/.nix-config/nixos/xkb"; # dir = "/home/cnst/.nix-config/nixos/xkb";