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 = [
|
imports = [
|
||||||
./nh.nix
|
|
||||||
./substituters.nix
|
./substituters.nix
|
||||||
./nixpkgs.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
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user