resturcting of nixos 1

This commit is contained in:
cnst
2024-07-07 11:34:02 +02:00
parent f56fbc81f6
commit 06062a592b
11 changed files with 121 additions and 37 deletions

View File

@@ -28,16 +28,14 @@ in {
"gamemode"
"adbusers"
"rtkit"
"users"
];
};
imports = [
inputs.home-manager.nixosModules.home-manager
../../core
../../extra/cnix.nix
../../services/cnix.nix
../../hardware/cnix.nix
../../locale/cnix.nix
./imports.nix
./system.nix
./hardware-configuration.nix
];
@@ -75,6 +73,7 @@ in {
enable = true;
pkiBundle = "/etc/secureboot";
};
# Enable networking
networking = {
networkmanager.enable = true;
@@ -85,16 +84,6 @@ in {
FLAKE = "/home/cnst/.nix-config";
};
# Garbage collector / Nix helper
programs = {
nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/cnst/.nix-config";
};
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.05";
}

View File

@@ -0,0 +1,69 @@
{pkgs, ...}: {
imports = [
# core
../../core/hyprland.nix
../../core/adb.nix
../../core/zsh.nix
../../core/fonts.nix
# hardware
../../hardware/cnix.nix
# locale
../../locale/cnix.nix
# services
../../services/blueman.nix
../../services/dbus.nix
../../services/gnome-keyring.nix
../../services/greetd.nix
../../services/gvfs.nix
../../services/mullvad.nix
../../services/openssh.nix
../../services/pipewire.nix
../../services/udisks.nix
../../services/xserver.nix
# extra
../../extra/gaming.nix
../../extra/workstation
# ../../extra/nix-ld
];
environment = {
systemPackages = with pkgs; [
# Core
git
sbctl
niv
nix-output-monitor
nvd
fd
# Util
stow
wget
curl
ripgrep
python3
hyprlang
python312Packages.oauth2
python312Packages.httplib2
killall
tree-sitter
lazygit
tmux
tmuxifier
unzip
p7zip
unrar
xdg-utils
xdg-user-dirs
ntfs3g
gnome-disk-utility
wlroots
fzf
udiskie
];
};
}

View File

@@ -0,0 +1,36 @@
{
inputs,
outputs,
...
}: {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs outputs;
};
};
nixpkgs = {
overlays = [];
config = {
allowUnfree = true;
input-fonts.acceptLicense = true;
};
};
programs = {
nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/cnst/.nix-config";
};
dconf.enable = true;
};
security.rtkit.enable = true;
environment.localBinInPath = true;
console.useXkbConfig = true;
}