summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-08-29 12:15:22 +0530
committersinanmohd <sinan@sinanmohd.com>2023-08-29 12:38:25 +0530
commit2a79b770054d1cd4699cdaaae8eab83a8ca92006 (patch)
treebc1cfef81c101e2882df643be876e5e023cbd764 /features
parentd0f36974931b425326ada13780e79666500c05a1 (diff)
repo: update the project structure
Diffstat (limited to 'features')
-rw-r--r--features/development.nix14
-rw-r--r--features/kaysshfs.nix22
-rw-r--r--features/wayland.nix72
-rw-r--r--features/xdp.nix27
4 files changed, 0 insertions, 135 deletions
diff --git a/features/development.nix b/features/development.nix
deleted file mode 100644
index 464b2e0..0000000
--- a/features/development.nix
+++ /dev/null
@@ -1,14 +0,0 @@
-{ config, pkgs, ... }:
-
-{
- environment.systemPackages = with pkgs; [
- nodePackages.bash-language-server
- nil
- ccls
- lua-language-server
- man-pages
- man-pages-posix
- ];
-
- documentation.dev.enable = true;
-}
diff --git a/features/kaysshfs.nix b/features/kaysshfs.nix
deleted file mode 100644
index 83cb68e..0000000
--- a/features/kaysshfs.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-{ config, pkgs, ... }:
-
-{
- system.fsPackages = with pkgs; [
- sshfs
- ];
-
- fileSystems."/mnt/kay" = {
- device = "sinansftp@sinanmohd.com:";
- fsType = "sshfs";
- options = [
- "allow_other" # for non-root access
- "_netdev" # this is a network fs
- "x-systemd.automount" # mount on demand
-
- # SSH options
- "reconnect" # handle connection drops
- "ServerAliveInterval=15" # keep connections alive
- "IdentityFile=/var/secrets/kaysftp-key"
- ];
- };
-}
diff --git a/features/wayland.nix b/features/wayland.nix
deleted file mode 100644
index 1eb1289..0000000
--- a/features/wayland.nix
+++ /dev/null
@@ -1,72 +0,0 @@
-{ config, pkgs, ... }:
-
-{
- # pkgs
- environment.systemPackages = with pkgs; [
- dwl-sinan
- zathura
- pinentry-gnome
- mpv
- qemu
- OVMFFull
- element-desktop
- swaylock
- swayidle
- swaybg
- foot
- grim
- slurp
- wl-clipboard
- wmenu-sinan
- mako
- wayland
- xdg-utils
- imv
- libnotify
- wob
- wlr-randr
- tor-browser-bundle-bin
- wtype
- ];
-
- # font
- fonts = {
- packages = with pkgs; [
- terminus-nerdfont
- dm-sans
- ];
- enableDefaultPackages = true;
- fontconfig = {
- hinting.style = "full";
- defaultFonts = {
- monospace = [ "Terminess Nerd Font" ];
- serif = [ "DeepMind Sans" ];
- sansSerif = [ "DeepMind Sans" ];
- };
- };
- };
-
- # misc
- hardware.opengl.enable = true;
-
- services.dbus.enable = true;
- programs = {
- xwayland.enable = true;
- gnupg.agent = {
- enable = true;
- pinentryFlavor = "gnome3";
- };
- firefox = {
- enable = true;
- preferences = {
- "media.ffmpeg.vaapi.enabled" = true;
- "gfx.webrender.all" = true;
- };
- };
- };
-
- security = {
- polkit.enable = true;
- pam.services.swaylock.text = "auth include login";
- };
-}
diff --git a/features/xdp.nix b/features/xdp.nix
deleted file mode 100644
index 98d97a4..0000000
--- a/features/xdp.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{ config, pkgs, ... }:
-
-let
- # https://github.com/emersion/xdg-desktop-portal-wlr/wiki/"It-doesn't-work"-Troubleshooting-Checklist
- dbus-xdp-environment = pkgs.writeTextFile {
- name = "dbus-xdp-environment";
- destination = "/bin/dbus-xdp-environment";
- executable = true;
-
- text = ''
- dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=wlroots
- systemctl --user stop pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-wlr
- systemctl --user start pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-wlr
- '';
- };
-in
-{
- # pkgs
- environment.systemPackages = [ dbus-xdp-environment ];
-
- # xdg desktop portal
- xdg.portal = {
- enable = true;
- wlr.enable = true;
- extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
- };
-}