resturcting of nixos 1
This commit is contained in:
@@ -5,15 +5,9 @@
|
|||||||
./bottles
|
./bottles
|
||||||
./gamemode
|
./gamemode
|
||||||
./gamescope
|
./gamescope
|
||||||
./workstation
|
|
||||||
];
|
];
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
# Dev
|
|
||||||
fd
|
|
||||||
python3
|
|
||||||
hyprlang
|
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
protonup
|
protonup
|
||||||
|
|
||||||
@@ -1,10 +1,4 @@
|
|||||||
{
|
{pkgs, ...}: {
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|||||||
@@ -28,16 +28,14 @@ in {
|
|||||||
"gamemode"
|
"gamemode"
|
||||||
"adbusers"
|
"adbusers"
|
||||||
"rtkit"
|
"rtkit"
|
||||||
|
"users"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
../../core
|
./imports.nix
|
||||||
../../extra/cnix.nix
|
./system.nix
|
||||||
../../services/cnix.nix
|
|
||||||
../../hardware/cnix.nix
|
|
||||||
../../locale/cnix.nix
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -75,6 +73,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
pkiBundle = "/etc/secureboot";
|
pkiBundle = "/etc/secureboot";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
@@ -85,16 +84,6 @@ in {
|
|||||||
FLAKE = "/home/cnst/.nix-config";
|
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
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
|||||||
69
nixos/hosts/cnix/imports.nix
Normal file
69
nixos/hosts/cnix/imports.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
36
nixos/hosts/cnix/system.nix
Normal file
36
nixos/hosts/cnix/system.nix
Normal 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;
|
||||||
|
}
|
||||||
1
nixos/services/blueman.nix
Normal file
1
nixos/services/blueman.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{services.blueman.enable = true;}
|
||||||
@@ -6,13 +6,4 @@
|
|||||||
./openssh.nix
|
./openssh.nix
|
||||||
./mullvad.nix
|
./mullvad.nix
|
||||||
];
|
];
|
||||||
services = {
|
|
||||||
dbus.packages = with pkgs; [
|
|
||||||
gcr
|
|
||||||
];
|
|
||||||
udisks2.enable = true;
|
|
||||||
gvfs.enable = true;
|
|
||||||
blueman.enable = true;
|
|
||||||
gnome.gnome-keyring.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
7
nixos/services/dbus.nix
Normal file
7
nixos/services/dbus.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
services = {
|
||||||
|
dbus.packages = with pkgs; [
|
||||||
|
gcr
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
1
nixos/services/gnome-keyring.nix
Normal file
1
nixos/services/gnome-keyring.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{services.gnome.gnome-keyring.enable = true;}
|
||||||
1
nixos/services/gvfs.nix
Normal file
1
nixos/services/gvfs.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{services.gvfs.enable = true;}
|
||||||
1
nixos/services/udisks.nix
Normal file
1
nixos/services/udisks.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{services.udisks2.enable = true;}
|
||||||
Reference in New Issue
Block a user