Seperate user

This commit is contained in:
willifan 2024-05-11 21:26:33 +02:00
parent 347b20d668
commit 641cf5ad70
36 changed files with 196 additions and 222 deletions

View file

@ -0,0 +1,46 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
hyprlock
hypridle
hyprpaper
hyprcursor
grim
slurp
wl-clipboard
kanshi
jq
bc
xorg.xrandr
pulseaudio
inotify-tools
papirus-icon-theme
eww
mako
polkit_gnome
python3
usbutils
unzip
btop
feh
kitty
dolphin
hyfetch
wofi
enpass
firefox
thunderbird
webcord
obsidian
kicad
gnome.nautilus
cinnamon.nemo-with-extensions
];
}

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
services.auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "powersave";
turbo = "never";
};
};
};
}

View file

@ -0,0 +1,20 @@
{ pkgs, home-manager, ... }:
{
imports = [
./graphical
./applications.nix
./auto-cpufreq.nix
./envvar.nix
./git.nix
./locales.nix
./pipewire.nix
./polkit.nix
#./ssh.nix
./syncthing.nix
./udev.nix
./user.nix
#./zsh.nix
];
home-manager.users.willifan.home.stateVersion = "23.11";
}

17
users/willifan/envvar.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
environment.sessionVariables = rec {
NIXOS_OZONE_WL = "1";
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
# Not officially in the specification
#XDG_BIN_HOME = "$HOME/.local/bin";
#PATH = [
# "${XDG_BIN_HOME}"
#];
SCRIPTS = "$XDG_CONFIG_HOME/scripts";
};
}

14
users/willifan/git.nix Normal file
View file

@ -0,0 +1,14 @@
{ pkgs, home-manager, ... }:
{
home-manager.users.willifan = {
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = "willifan";
userEmail = "willifan@proton.me";
extraConfig = {
init.defaultBranch = "main";
};
};
};
}

View file

@ -0,0 +1,16 @@
{ pkgs, home-manager-unstable, ... }:
{
imports = [
./dev
#./hyprland
./theme
#./firefox.nix
#./kitty.nix
#./thunderbird.nix
];
}

View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
imports = [
./vscodium.nix
];
}

View file

@ -0,0 +1,54 @@
{ pkgs, home-manager, ... }:
{
home-manager.users.willifan = {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
# System
bbenoist.nix
#fireblast.hyprlang-vscode
#eww-yuck.yuck
#Rust
rust-lang.rust-analyzer
serayuzgur.crates
bungcip.better-toml
vadimcn.vscode-lldb
usernamehw.errorlens
#C/C++
ms-vscode.cpptools
twxs.cmake
ms-vscode.cmake-tools
#Shell
timonwong.shellcheck
mads-hartmann.bash-ide-vscode
#Git
#phil294.git-log--graph
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "hyprlang-vscode";
publisher = "fireblast";
version = "0.0.1";
sha256 = "lSMihMIue0qu9+97EgT5dqjbzsey0TLZDpJby+Piip4=";
}
{
name = "yuck";
publisher = "eww-yuck";
version = "0.0.3";
sha256 = "DITgLedaO0Ifrttu+ZXkiaVA7Ua5RXc4jXQHPYLqrcM=";
}
{
name = "git-log--graph";
publisher = "phil294";
version = "0.1.15";
sha256 = "lvjDkvXSX7rw7HyyK3WWQLnGezvL6FPEgtjIi8KWkU0=";
}
];
};
};
}

View file

View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
imports = [
./hyprland.nix
./kanshi.nix
];
}

View file

@ -0,0 +1,17 @@
{
services.kanshi = {
enable = true;
profile = {
default = {
outputs = [
];
};
};
systemdTarget = "hyprland-session.target";
};
}

View file

View file

@ -0,0 +1,8 @@
{ pkgs, home-manager-unstable, ... }:
{
imports = [
./gtk.nix
#./qt.nix
];
}

View file

@ -0,0 +1,46 @@
{ pkgs, home-manager, ... }:
{
home-manager.users.willifan = {
gtk = {
enable = true;
font = {
name = "jetbrains-mono";
package = pkgs.jetbrains-mono;
};
theme = {
name = "rose-pine";
package = pkgs.rose-pine-gtk-theme;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
#TODO add ascendancy cursor pack
#cursortTheme.name = "";
#cursortTheme.package = ;
gtk3.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
gtk4 = {
extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
extraCss = ''
.sidebar-pane {
background-color: rgb(42, 42, 42);
}
'';
};
};
};
}

View file

View file

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
}

View file

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
};
}

19
users/willifan/polkit.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
security.polkit.enable = true;
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
}

6
users/willifan/ssh.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, home-manager, ... }:
{
home-manager.users.willifan = {
};
}

View file

@ -0,0 +1,47 @@
{ pkgs, ... }:
{
services.syncthing = {
enable = true;
user = "willifan";
dataDir = "/home/willifan/temp";
configDir = "/home/willifan/temp/.config/syncthing";
overrideDevices = true;
overrideFolders = true;
settings = {
gui = {
user = "willifan";
password = "temppassword";
};
devices = {
Anton = { id = "SGKTC3I-6IQZ5Z5-VAB76N6-L7DJ3TH-BMSZGKZ-MZPZHLO-KOVMZ2W-V5GQTA6"; };
};
folders = {
"Documents" = {
id = "jtl6g-qjmwo";
path = "/home/willifan/temp/Documents";
devices = [ "Anton" ];
};
"Pictures" = {
id = "po4qj-q9t0t";
path = "/home/willifan/temp/Pictures";
devices = [ "Anton" ];
};
"Videos" = {
id = "4wqf5-xasng";
path = "/home/willifan/temp/Videos";
devices = [ "Anton" ];
};
"Notes" = {
id = "oc61n-iewgj";
path = "/home/willifan/temp/Notes";
devices = [ "Anton" ];
};
"Music" = {
id = "xxh8a-3y2tq";
path = "/home/willifan/temp/Music";
devices = [ "Anton" ];
};
};
};
};
}

6
users/willifan/udev.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness"
'';
}

9
users/willifan/user.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
users.users.willifan = {
isNormalUser = true;
description = "willifan";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
};
}

6
users/willifan/zsh.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, home-manager, ... }:
{
home-manager.users.willifan = {
};
}