fuck precommit :(

This commit is contained in:
cnst
2024-07-31 18:10:04 +02:00
parent a67a342617
commit 1b7fef667c
11 changed files with 118 additions and 91 deletions

View File

@@ -1,4 +1,22 @@
{pkgs, ...}: {
imports = [
./nix
./xdg.nix
./zsh.nix
./fonts.nix
./home-manager.nix
./hyprland.nix
];
security = {
rtkit.enable = true;
pam.services.hyprlock = {};
};
programs.dconf.enable = true;
environment.localBinInPath = true;
console.useXkbConfig = true;
environment.systemPackages = with pkgs; [
anyrun
stow

View File

@@ -1,10 +1,6 @@
let
desktop = [
./core/hyprland.nix
./core/xdg.nix
./core/zsh.nix
./core/fonts.nix
./core/home-manager.nix
./core
./locale

View File

@@ -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";
}

View File

@@ -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="
];
};
}

View File

@@ -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";
};
};

View File

@@ -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
];
};
};
}

View File

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