yahoo
This commit is contained in:
11
nixos/core/system/cnix-nh.nix
Normal file
11
nixos/core/system/cnix-nh.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./nh.nix
|
||||
./substituters.nix
|
||||
./nixpkgs.nix
|
||||
];
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
11
nixos/core/system/toothpc-nh.nix
Normal file
11
nixos/core/system/toothpc-nh.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
let
|
||||
desktop = [
|
||||
shared = [
|
||||
./core
|
||||
|
||||
./locale
|
||||
@@ -17,10 +17,20 @@ let
|
||||
];
|
||||
|
||||
laptop =
|
||||
desktop
|
||||
shared
|
||||
++ [
|
||||
./services/fwupd
|
||||
];
|
||||
cnix =
|
||||
shared
|
||||
++ [
|
||||
./core/system/cnix-nh.nix
|
||||
];
|
||||
toothpc =
|
||||
shared
|
||||
++ [
|
||||
./core/system/toothpc-nh.nix
|
||||
];
|
||||
in {
|
||||
inherit desktop laptop;
|
||||
inherit shared laptop cnix toothpc;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
mod = "${self}/nixos";
|
||||
|
||||
# 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
|
||||
specialArgs = {inherit inputs self;};
|
||||
@@ -18,7 +18,7 @@
|
||||
cnix = nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules =
|
||||
desktop
|
||||
cnix
|
||||
++ [
|
||||
./cnix
|
||||
"${mod}/core/lanzaboote.nix"
|
||||
@@ -46,7 +46,7 @@
|
||||
toothpc = nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules =
|
||||
desktop
|
||||
toothpc
|
||||
++ [
|
||||
./toothpc
|
||||
"${mod}/core"
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
let
|
||||
homeDir = builtins.getEnv "HOME";
|
||||
in {
|
||||
{config, ...}: {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
videoDrivers = ["amdgpu"];
|
||||
@@ -8,7 +6,7 @@ in {
|
||||
extraLayouts.hhkbse = {
|
||||
description = "HHKBse by cnst";
|
||||
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";
|
||||
# dir = "/home/cnst/.nix-config/nixos/xkb";
|
||||
|
||||
Reference in New Issue
Block a user