diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 3e7b1f6..31d621f 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -16,7 +16,7 @@ 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 users.defaultUserShell = pkgs.fish; @@ -27,7 +27,12 @@ # Enable the X11 windowing system. # 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. services.xserver.displayManager.sddm.enable = true; @@ -118,6 +123,7 @@ lazygit fzf neofetch + jmtpfs # Android MTP # Video/Audio alsa-utils # Audio Control diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index e7ee166..9c6625a 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -14,7 +14,9 @@ ../../modules/virtualization/docker.nix ../../modules/virtualization/qemu.nix ../../modules/programs/games.nix - ../../modules/services/easyeffects.nix + ../../modules/secrets/gnome-keyring.nix + ../../modules/secrets/gpg.nix + # ../../modules/services/easyeffects.nix ]; boot = { @@ -39,16 +41,13 @@ extraBackends = [unstable.utsushi]; }; }; - services.udev.packages = [unstable.utsushi]; - # hyprland.enable = true; - kde.enable = true; + # Desktops + hyprland.enable = false; + kde.enable = false; awesome.enable = true; - # home-manager.users.${vars.user} = { - # services.kdeconnect.enable = true; - # }; - nixpkgs.config.librewolf.enablePlasmaBrowserIntegration = true; + programs.kdeconnect.enable = true; environment = { systemPackages = with pkgs; diff --git a/modules/coding/android-studio.nix b/modules/coding/android-studio.nix new file mode 100644 index 0000000..e3e9227 --- /dev/null +++ b/modules/coding/android-studio.nix @@ -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 + ]; +} diff --git a/modules/coding/default.nix b/modules/coding/default.nix index a2aa177..e68a1d3 100644 --- a/modules/coding/default.nix +++ b/modules/coding/default.nix @@ -2,4 +2,5 @@ ./nvim.nix ./vscode.nix ./intellij.nix + ./android-studio.nix ] diff --git a/modules/coding/intellij.nix b/modules/coding/intellij.nix index 781c4fd..eff3cec 100644 --- a/modules/coding/intellij.nix +++ b/modules/coding/intellij.nix @@ -11,6 +11,6 @@ in { }; environment.systemPackages = with unstable; [ - (jetbrains.plugins.addPlugins jetbrains.idea-ultimate ["github-copilot" "ideavim"]) + (jetbrains.plugins.addPlugins jetbrains.idea-ultimate ["ideavim"]) ]; } diff --git a/modules/desktops/awesome.nix b/modules/desktops/awesome.nix index 54b2590..e8dcea1 100644 --- a/modules/desktops/awesome.nix +++ b/modules/desktops/awesome.nix @@ -29,44 +29,6 @@ with lib; { modules = [pkgs.xf86_input_wacom]; wacom.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; []); }; + # Flatpak + xdg.portal.enable = true; + xdg.portal.extraPortals = with pkgs; [xdg-desktop-portal-kde]; + + # Networking + networking.networkmanager.enable = true; }; } diff --git a/modules/programs/librewolf.nix b/modules/programs/librewolf.nix index f30c801..f89161d 100644 --- a/modules/programs/librewolf.nix +++ b/modules/programs/librewolf.nix @@ -5,6 +5,8 @@ vars, ... }: { + nixpkgs.config.librewolf.enablePlasmaBrowserIntegration = true; + home-manager.users.${vars.user} = { programs.librewolf = { enable = true; diff --git a/modules/secrets/gnome-keyring.nix b/modules/secrets/gnome-keyring.nix new file mode 100644 index 0000000..701b31f --- /dev/null +++ b/modules/secrets/gnome-keyring.nix @@ -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; +} diff --git a/modules/secrets/gpg.nix b/modules/secrets/gpg.nix new file mode 100644 index 0000000..d1eedf3 --- /dev/null +++ b/modules/secrets/gpg.nix @@ -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"; + }; + }; +} diff --git a/modules/shell/fish.nix b/modules/shell/fish.nix index 82f5d8e..15e12db 100644 --- a/modules/shell/fish.nix +++ b/modules/shell/fish.nix @@ -16,6 +16,10 @@ lzg = "lazygit"; lzd = "lazydocker"; 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"; }; }; }; diff --git a/modules/shell/git.nix b/modules/shell/git.nix index d290263..3765567 100644 --- a/modules/shell/git.nix +++ b/modules/shell/git.nix @@ -18,7 +18,7 @@ extraConfig = { # Sign all commits using ssh key - commit.gpgsign = true; + commit.gpgsign = false; gpg.format = "ssh"; gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers"; user.signingkey = "~/.ssh/git.pub";