Merge branch 'main' of github.com:GHOSCHT/nix-config
This commit is contained in:
commit
1bd829d32b
11 changed files with 80 additions and 50 deletions
|
@ -16,7 +16,7 @@
|
||||||
extraGroups = ["wheel" "video" "audio" "camera" "networkmanager" "lp" "scanner" "kvm" "libvirtd" "i2c" "tty" "dialout"];
|
extraGroups = ["wheel" "video" "audio" "camera" "networkmanager" "lp" "scanner" "kvm" "libvirtd" "i2c" "tty" "dialout"];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.supportedFilesystems = ["ntfs"];
|
boot.supportedFilesystems = ["ntfs" "exfat"];
|
||||||
|
|
||||||
# Set default shell -> move to module
|
# Set default shell -> move to module
|
||||||
users.defaultUserShell = pkgs.fish;
|
users.defaultUserShell = pkgs.fish;
|
||||||
|
@ -27,7 +27,12 @@
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
# services.xserver.enable = true;
|
# services.xserver.enable = true;
|
||||||
|
|
||||||
programs.ssh.startAgent = true;
|
# programs.ssh.startAgent = true;
|
||||||
|
|
||||||
|
services.logind.extraConfig = ''
|
||||||
|
# don’t shutdown when power button is short-pressed
|
||||||
|
HandlePowerKey=ignore
|
||||||
|
'';
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
services.xserver.displayManager.sddm.enable = true;
|
services.xserver.displayManager.sddm.enable = true;
|
||||||
|
@ -118,6 +123,7 @@
|
||||||
lazygit
|
lazygit
|
||||||
fzf
|
fzf
|
||||||
neofetch
|
neofetch
|
||||||
|
jmtpfs # Android MTP
|
||||||
|
|
||||||
# Video/Audio
|
# Video/Audio
|
||||||
alsa-utils # Audio Control
|
alsa-utils # Audio Control
|
||||||
|
|
|
@ -14,7 +14,9 @@
|
||||||
../../modules/virtualization/docker.nix
|
../../modules/virtualization/docker.nix
|
||||||
../../modules/virtualization/qemu.nix
|
../../modules/virtualization/qemu.nix
|
||||||
../../modules/programs/games.nix
|
../../modules/programs/games.nix
|
||||||
../../modules/services/easyeffects.nix
|
../../modules/secrets/gnome-keyring.nix
|
||||||
|
../../modules/secrets/gpg.nix
|
||||||
|
# ../../modules/services/easyeffects.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
@ -39,16 +41,13 @@
|
||||||
extraBackends = [unstable.utsushi];
|
extraBackends = [unstable.utsushi];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.udev.packages = [unstable.utsushi];
|
services.udev.packages = [unstable.utsushi];
|
||||||
|
|
||||||
# hyprland.enable = true;
|
# Desktops
|
||||||
kde.enable = true;
|
hyprland.enable = false;
|
||||||
|
kde.enable = false;
|
||||||
awesome.enable = true;
|
awesome.enable = true;
|
||||||
# home-manager.users.${vars.user} = {
|
|
||||||
# services.kdeconnect.enable = true;
|
|
||||||
# };
|
|
||||||
nixpkgs.config.librewolf.enablePlasmaBrowserIntegration = true;
|
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs;
|
systemPackages = with pkgs;
|
||||||
|
|
19
modules/coding/android-studio.nix
Normal file
19
modules/coding/android-studio.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
unstable,
|
||||||
|
vars,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
in {
|
||||||
|
home-manager.users.${vars.user} = {
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.adb.enable = true;
|
||||||
|
users.users.${vars.user}.extraGroups = ["adbusers"];
|
||||||
|
|
||||||
|
environment.systemPackages = with unstable; [
|
||||||
|
android-studio
|
||||||
|
];
|
||||||
|
}
|
|
@ -2,4 +2,5 @@
|
||||||
./nvim.nix
|
./nvim.nix
|
||||||
./vscode.nix
|
./vscode.nix
|
||||||
./intellij.nix
|
./intellij.nix
|
||||||
|
./android-studio.nix
|
||||||
]
|
]
|
||||||
|
|
|
@ -11,6 +11,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with unstable; [
|
environment.systemPackages = with unstable; [
|
||||||
(jetbrains.plugins.addPlugins jetbrains.idea-ultimate ["github-copilot" "ideavim"])
|
(jetbrains.plugins.addPlugins jetbrains.idea-ultimate ["ideavim"])
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,44 +29,6 @@ with lib; {
|
||||||
modules = [pkgs.xf86_input_wacom];
|
modules = [pkgs.xf86_input_wacom];
|
||||||
wacom.enable = true;
|
wacom.enable = true;
|
||||||
windowManager.awesome.enable = true;
|
windowManager.awesome.enable = true;
|
||||||
# deviceSection = ''
|
|
||||||
# Identifier "Device0"
|
|
||||||
# Driver "nvidia"
|
|
||||||
# VendorName "NVIDIA Corporation"
|
|
||||||
# BoardName "NVIDIA GeForce RTX 2070 SUPER"
|
|
||||||
# '';
|
|
||||||
|
|
||||||
# serverLayoutSection = ''
|
|
||||||
# Identifier "Mouse0"
|
|
||||||
# Driver "mouse"
|
|
||||||
# Option "Protocol" "auto"
|
|
||||||
# Option "Device" "/dev/input/mice"
|
|
||||||
# Option "Emulate3Buttons" "no"
|
|
||||||
# Option "ZAxisMapping" "4 5"
|
|
||||||
# '';
|
|
||||||
# monitorSection = ''
|
|
||||||
# Identifier "Monitor0"
|
|
||||||
# VendorName "Unknown"
|
|
||||||
# ModelName "Acer XF270HU"
|
|
||||||
# HorizSync 222.0 - 222.0
|
|
||||||
# VertRefresh 40.0 - 144.0
|
|
||||||
# Option "DPMS"
|
|
||||||
# '';
|
|
||||||
# screenSection = ''
|
|
||||||
# Identifier "Screen0"
|
|
||||||
# Device "Device0"
|
|
||||||
# Monitor "Monitor0"
|
|
||||||
# DefaultDepth 24
|
|
||||||
# Option "Stereo" "0"
|
|
||||||
# Option "nvidiaXineramaInfoOrder" "DFP-5"
|
|
||||||
# Option "metamodes" "DP-4: 2560x1440_144 +1920+0, DP-0: 1920x1080_75 +0+0"
|
|
||||||
# Option "SLI" "Off"
|
|
||||||
# Option "MultiGPU" "Off"
|
|
||||||
# Option "BaseMosaic" "off"
|
|
||||||
# SubSection "Display"
|
|
||||||
# Depth 24
|
|
||||||
# EndSubSection
|
|
||||||
# '';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -108,5 +70,11 @@ with lib; {
|
||||||
]
|
]
|
||||||
++ (with unstable; []);
|
++ (with unstable; []);
|
||||||
};
|
};
|
||||||
|
# Flatpak
|
||||||
|
xdg.portal.enable = true;
|
||||||
|
xdg.portal.extraPortals = with pkgs; [xdg-desktop-portal-kde];
|
||||||
|
|
||||||
|
# Networking
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
vars,
|
vars,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
nixpkgs.config.librewolf.enablePlasmaBrowserIntegration = true;
|
||||||
|
|
||||||
home-manager.users.${vars.user} = {
|
home-manager.users.${vars.user} = {
|
||||||
programs.librewolf = {
|
programs.librewolf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
11
modules/secrets/gnome-keyring.nix
Normal file
11
modules/secrets/gnome-keyring.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
vars,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
security.pam.services.${vars.user}.enableGnomeKeyring = true;
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
programs.seahorse.enable = true;
|
||||||
|
}
|
20
modules/secrets/gpg.nix
Normal file
20
modules/secrets/gpg.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
vars,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home-manager.users.${vars.user} = {
|
||||||
|
programs.gpg = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
services.gpg-agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSshSupport = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
pinentryFlavor = "gnome3";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -16,6 +16,10 @@
|
||||||
lzg = "lazygit";
|
lzg = "lazygit";
|
||||||
lzd = "lazydocker";
|
lzd = "lazydocker";
|
||||||
batt = ''upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -e "percentage" -e "state"'';
|
batt = ''upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -e "percentage" -e "state"'';
|
||||||
|
hxoff = "~/Documents/heliox-cli/target/debug/heliox-cli --mode off";
|
||||||
|
hxson = "~/Documents/heliox-cli/target/debug/heliox-cli --mode son";
|
||||||
|
slp = "systemctl suspend";
|
||||||
|
sdn = "shutdown 0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
# Sign all commits using ssh key
|
# Sign all commits using ssh key
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = false;
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
||||||
user.signingkey = "~/.ssh/git.pub";
|
user.signingkey = "~/.ssh/git.pub";
|
||||||
|
|
Loading…
Reference in a new issue