fuck precommit :(
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
system,
|
||||
...
|
||||
}: let
|
||||
homeDir = builtins.getEnv "HOME";
|
||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||
in {
|
||||
users.users.cnst = {
|
||||
@@ -33,12 +34,8 @@ in {
|
||||
];
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
|
||||
imports = [
|
||||
./system.nix
|
||||
./hardware-configuration.nix
|
||||
./substituters.nix
|
||||
];
|
||||
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_cachyos;
|
||||
@@ -50,10 +47,6 @@ in {
|
||||
"splash"
|
||||
];
|
||||
|
||||
environment.sessionVariables = {
|
||||
FLAKE = "/home/cnst/.nix-config";
|
||||
};
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
system.stateVersion = lib.mkDefault "23.11";
|
||||
}
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
{
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
# high priority since it's almost always used
|
||||
"https://cache.nixos.org?priority=10"
|
||||
|
||||
"https://anyrun.cachix.org"
|
||||
"https://fufexan.cachix.org"
|
||||
"https://helix.cachix.org"
|
||||
"https://hyprland.cachix.org"
|
||||
"https://nix-community.cachix.org"
|
||||
"https://nix-gaming.cachix.org"
|
||||
"https://yazi.cachix.org"
|
||||
];
|
||||
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
|
||||
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
||||
"fufexan.cachix.org-1:LwCDjCJNJQf5XD2BV+yamQIMZfcKWR9ISIFy5curUsY="
|
||||
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
||||
"yazi.cachix.org-1:Dcdz63NZKfvUCbDGngQDAZq6kOroIrFoyO064uvLh8k="
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -3,14 +3,18 @@
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}: 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 = "/home/cnst/.nix-config";
|
||||
flake = "${homeDir}/.nix-config";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -44,32 +44,59 @@
|
||||
inputs.chaotic.nixosModules.default
|
||||
];
|
||||
};
|
||||
toothpc = nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules =
|
||||
desktop
|
||||
++ [
|
||||
./toothpc
|
||||
"${mod}/core"
|
||||
"${mod}/core/lanzaboote.nix"
|
||||
"${mod}/core/network/toothpc.nix"
|
||||
|
||||
# rog = nixosSystem {
|
||||
# inherit specialArgs;
|
||||
# modules =
|
||||
# laptop
|
||||
# ++ [
|
||||
# ./rog
|
||||
# "${mod}/core/lanzaboote.nix"
|
||||
"${mod}/hardware/toothpc.nix"
|
||||
|
||||
# "${mod}/programs/gamemode.nix"
|
||||
# "${mod}/programs/hyprland.nix"
|
||||
# "${mod}/programs/games.nix"
|
||||
"${mod}/services/xserver/toothpc.nix"
|
||||
|
||||
# "${mod}/services/kanata"
|
||||
# {home-manager.users.mihai.imports = homeImports."mihai@rog";}
|
||||
# ];
|
||||
# };
|
||||
"${mod}/extra/gaming.nix"
|
||||
"${mod}/extra/android"
|
||||
"${mod}/extra/workstation"
|
||||
{
|
||||
home-manager = {
|
||||
users.toothpick.imports = homeImports."toothpick@toothpc";
|
||||
extraSpecialArgs = specialArgs;
|
||||
};
|
||||
}
|
||||
|
||||
# kiiro = nixosSystem {
|
||||
# inherit specialArgs;
|
||||
# modules =
|
||||
# desktop
|
||||
# ++ [
|
||||
# ./kiiro
|
||||
# {home-manager.users.mihai.imports = homeImports.server;}
|
||||
# ];
|
||||
# };
|
||||
# inputs.agenix.nixosModules.default
|
||||
inputs.chaotic.nixosModules.default
|
||||
];
|
||||
};
|
||||
adampad = nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules =
|
||||
laptop
|
||||
++ [
|
||||
./adampad
|
||||
"${mod}/core"
|
||||
"${mod}/core/network/adampad.nix"
|
||||
|
||||
"${mod}/hardware/adampad.nix"
|
||||
|
||||
"${mod}/services/xserver/adampad.nix"
|
||||
"${mod}/services/blueman"
|
||||
|
||||
"${mod}/extra/android"
|
||||
{
|
||||
home-manager = {
|
||||
users.adam.imports = homeImports."adam@adampad";
|
||||
extraSpecialArgs = specialArgs;
|
||||
};
|
||||
}
|
||||
|
||||
# inputs.agenix.nixosModules.default
|
||||
inputs.chaotic.nixosModules.default
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user