This commit is contained in:
Hadi
2024-08-19 19:36:21 +02:00
parent 849eb5dd11
commit 79a69d245c
8 changed files with 42 additions and 53 deletions

View File

@@ -14,7 +14,6 @@
./variables.nix
];
# Networking
networking.networkmanager.enable = true;
networking.hostName = config.var.hostname;
systemd.services.NetworkManager-wait-online.enable = false;
@@ -31,7 +30,6 @@
};
console.keyMap = config.var.keyboardLayout;
# Shell
programs.zsh = {
enable = true;
loginShellInit = ''
@@ -40,15 +38,10 @@
};
users.defaultUserShell = pkgs.zsh;
# Set environment variables
environment.variables = {
XDG_DATA_HOME = "$HOME/.local/share";
PASSWORD_STORE_DIR = "$HOME/.local/share/password-store";
MOZ_ENABLE_WAYLAND = "1";
EDITOR = "nvim";
ANKI_WAYLAND = "1";
DISABLE_QT5_COMPAT = "0";
NIXOS_OZONE_WL = "1";
};
nix = {
@@ -72,9 +65,20 @@
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ networkmanagerapplet ];
nixpkgs.config.permittedInsecurePackages =
[ "electron-25.9.0" ]; # TODO: test to remove
environment.systemPackages = with pkgs; [
networkmanagerapplet
fd
bc
gcc
git-ignore
xdg-utils
wget
curl
];
# nixpkgs.config.permittedInsecurePackages =
# [ "electron-25.9.0" ]; # TODO: test to remove
system.autoUpgrade = {
enable = config.var.autoUpgrade;
@@ -84,10 +88,10 @@
allowReboot = false;
};
xdg.portal = { # TODO: test to remove
enable = true;
configPackages = with pkgs; [ xdg-desktop-portal-gtk ];
};
# xdg.portal = { # TODO: test to remove
# enable = true;
# configPackages = with pkgs; [ xdg-desktop-portal-gtk ];
# };
services.libinput.enable = true;
programs.dconf.enable = true;

View File

@@ -11,7 +11,6 @@
../../home/programs/nvim
../../home/programs/qutebrowser
../../home/programs/spicetify
../../home/programs/zathura
../../home/programs/shell
../../home/programs/fetch
../../home/programs/lf
@@ -24,6 +23,7 @@
# System (Desktop environment like stuff)
../../home/system/dunst
../../home/system/gtk
../../home/system/zathura
../../home/system/hyprland
../../home/system/waybar
../../home/system/wlogout
@@ -39,10 +39,7 @@
inherit (config.var) homeDirectory;
packages = with pkgs; [
swappy
imv
discord
obsidian
xfce.thunar
bitwarden
vlc
@@ -55,32 +52,16 @@
nodejs
python3
jq
git-ignore
nurl
prefetch-npm-deps
figlet
# Infosec
exegol
# Utils
fd
bc
gcc
blueman
zip
unzip
xdg_utils
wget
curl
wf-recorder
glow
nwg-displays
wireguard-tools
bitwarden-cli
optipng
pfetch
usbutils
pandoc
# Just cool
@@ -91,7 +72,6 @@
# Backup
vscode
tor-browser
firefox
neovide
];
@@ -102,6 +82,7 @@
source = ../../home/wallpapers;
};
# Don't touch this
stateVersion = "24.05";
};

View File

@@ -18,16 +18,23 @@
email = "112569860+anotherhadi@users.noreply.github.com";
};
stateVersion = "24.05";
autoUpgrade = false;
autoGarbageCollector = false;
# SOPS
# Sops is a tool to store secrets in git repositories encrypted with GPG.
# change the sops configuration if you want to enable that:
sops = true;
# change the nvim's obsidian configuration if you want to enable that:
obsidian = true;
# Enable tailscale
tailscale = true;
usbguard = false; # TODO: Add the allow list variable
# USBGuard
# If usbguard enabled: set yours pref USB devices (change {id} to your trusted USB device), use `lsusb` command (from usbutils package) to get list
# of all connected USB devices including integrated devices like camera, bluetooth, wifi, etc. with their IDs or just disable `usbguard`
# allow id {id} # device 1...
usbguard = false;
usbguardRules = "";
theme = import ../themes/nixy.nix; # select your theme here
};