security and such

This commit is contained in:
cnst
2024-07-31 18:44:51 +02:00
parent 0eeca7d8a4
commit ec2d61b288
4 changed files with 15 additions and 13 deletions

View File

@@ -7,18 +7,11 @@
./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

@@ -8,9 +8,17 @@
imports = [
./substituters.nix
./nixpkgs.nix
./security.nix
];
environment.systemPackages = [pkgs.git];
environment = {
systemPackages = [
pkgs.git
pkgs.scx
pkgs.stow
];
localBinInPath = true;
};
nix = {
# pin the registry to avoid downloading and evaling a new nixpkgs version every time

View File

@@ -0,0 +1,6 @@
{
security = {
rtkit.enable = true;
pam.services.hyprlock = {};
};
}

View File

@@ -1,13 +1,9 @@
{
inputs,
outputs,
lib,
config,
pkgs,
system,
...
}: let
homeDir = builtins.getEnv "HOME";
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
users.users.cnst = {
@@ -39,7 +35,6 @@ in {
];
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_cachyos;
environment.systemPackages = [pkgs.scx];
boot.kernelParams = [
"amd_pstate=active"