mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 05:36:11 +01:00
all pckgs sync
This commit is contained in:
@@ -4,20 +4,28 @@
|
||||
if hostname == "zion" then [
|
||||
./zion.nix
|
||||
|
||||
./modules/nh.nix
|
||||
./modules/boot.nix
|
||||
./modules/users.nix
|
||||
./modules/greetd.nix
|
||||
./modules/fstrim.nix
|
||||
./modules/nvidia.nix
|
||||
./modules/network.nix
|
||||
./modules/security.nix
|
||||
./modules/pipewire.nix
|
||||
./modules/gsettings.nix
|
||||
./modules/adb.nix
|
||||
./modules/ananicy.nix
|
||||
# ./modules/bluetooth.nix
|
||||
./modules/packages.nix
|
||||
# ./modules/lanzaboot.nix
|
||||
./modules/boot.nix
|
||||
./modules/configuration.nix
|
||||
./modules/fstrim.nix
|
||||
./modules/gaming.nix
|
||||
./modules/greetd.nix
|
||||
./modules/gsettings.nix
|
||||
# ./modules/kde.nix
|
||||
# ./modules/lanzaboot.nix
|
||||
./modules/network.nix
|
||||
./modules/nh.nix
|
||||
./modules/nvidia.nix
|
||||
./modules/ollama.nix
|
||||
./modules/packages.nix
|
||||
./modules/pipewire.nix
|
||||
./modules/printing.nix
|
||||
./modules/security.nix
|
||||
./modules/ssh.nix
|
||||
./modules/users.nix
|
||||
./modules/vm.nix
|
||||
]
|
||||
else if hostname == "thor" then [
|
||||
./thor.nix
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
};
|
||||
|
||||
kernelPackages =
|
||||
if hostname == "zion" then pkgs.linuxPackages #linuxPackages_zen #linuxPackages #linuxPackages_latest #linuxPackages_xanmod_latest
|
||||
if hostname == "zion" then pkgs.linuxPackages_cachyos #linuxPackages_zen #linuxPackages #linuxPackages_latest #linuxPackages_xanmod_latest
|
||||
else if hostname == "thor" then pkgs.linuxPackages
|
||||
else if hostname == "server" then pkgs.linuxPackages
|
||||
else pkgs.linuxPackages_zen;
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
{ hostname, inputs, ... }:
|
||||
{ hostname, inputs, pkgs, ... }:
|
||||
{
|
||||
time.timeZone = "Europe/Warsaw";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "pl_PL.UTF-8";
|
||||
LC_IDENTIFICATION = "pl_PL.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "pl_PL.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "pl_PL.UTF-8";
|
||||
LC_TELEPHONE = "pl_PL.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
@@ -16,7 +28,11 @@
|
||||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
environment = {
|
||||
sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
shells = with pkgs; [ bash zsh ];
|
||||
};
|
||||
|
||||
system = {
|
||||
stateVersion = "24.05";
|
||||
@@ -26,15 +42,20 @@
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = { config = { allowUnfree = true; }; };
|
||||
nixpkgs = {
|
||||
config = {
|
||||
# I'm sorry Richard Stallman
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
documentation = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
doc.enable = false;
|
||||
man.enable = false;
|
||||
man.enable = true;
|
||||
dev.enable = false;
|
||||
info.enable = false;
|
||||
nixos.enable = false;
|
||||
nixos.enable = true;
|
||||
};
|
||||
|
||||
nix = {
|
||||
|
||||
@@ -6,8 +6,11 @@
|
||||
dosfstools
|
||||
nix-output-monitor
|
||||
nvd
|
||||
brightnessctl
|
||||
];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerdfonts
|
||||
noto-fonts
|
||||
@@ -25,6 +28,12 @@
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
settings = {
|
||||
max-cache-ttl = 60480000;
|
||||
default-cache-ttl = 60480000;
|
||||
# default-cache-ttl-ssh = 60480000;
|
||||
# max-cache-ttl-ssl = 60480000;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
3
hosts/modules/printing.nix
Normal file
3
hosts/modules/printing.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
services.printing.enable = true;
|
||||
}
|
||||
@@ -4,4 +4,10 @@
|
||||
rtkit.enable = true;
|
||||
polkit.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
gnome.gnome-keyring.enable = true;
|
||||
udisks2.enable = true;
|
||||
gvfs.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
ports = [ 22 ];
|
||||
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = true;
|
||||
UseDns = true;
|
||||
};
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
{ inputs, username, hostname, ... }:
|
||||
{ inputs, username, hostname, pkgs, ... }:
|
||||
{
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = "${username}";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"docker"
|
||||
"games"
|
||||
"dialout"
|
||||
"libvirtd"
|
||||
];
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
virtualisation = {
|
||||
podman = {
|
||||
enable = true;
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user