blah
This commit is contained in:
118
flake.lock
generated
118
flake.lock
generated
@@ -93,11 +93,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740346641,
|
"lastModified": 1742772485,
|
||||||
"narHash": "sha256-0djPRTfFhRo2FTYVNGkw9zFh8SbH0e0lyIwsrvwA1OY=",
|
"narHash": "sha256-8JuQ87ZScrTtvHGIW9LB1OiFU/EkcBIvuQFVvirqI4k=",
|
||||||
"owner": "9001",
|
"owner": "9001",
|
||||||
"repo": "copyparty",
|
"repo": "copyparty",
|
||||||
"rev": "598a29a7339f0824bc042f35c31697e239475095",
|
"rev": "e1dea7ef3ee397d50bd0ab14e2eb71bec2256d9b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -133,11 +133,11 @@
|
|||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738148035,
|
"lastModified": 1741786315,
|
||||||
"narHash": "sha256-KYOATYEwaKysL3HdHdS5kbQMXvzS4iPJzJrML+3TKAo=",
|
"narHash": "sha256-VT65AE2syHVj6v/DGB496bqBnu1PXrrzwlw07/Zpllc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "18d0a984cc2bc82cf61df19523a34ad463aa7f54",
|
"rev": "0d8c6ad4a43906d14abd5c60e0ffe7b587b213de",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -152,11 +152,11 @@
|
|||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741658994,
|
"lastModified": 1742838319,
|
||||||
"narHash": "sha256-frkkZXUXAHRKPhGdoWSYx6LOxdKQUQRl/1Hjj3XTzc0=",
|
"narHash": "sha256-daVj+uHpHvndui9DOxytAjVP7Kx8lG3/W3KPNR0EG/0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "e6acc4327ba98ade994a6b804b01ab5087726ce2",
|
"rev": "cb257a1d672f75f2f3e375fe1080216131dd1fb0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -411,18 +411,14 @@
|
|||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741376022,
|
"lastModified": 1742856449,
|
||||||
"narHash": "sha256-EPMhteiZurPFiVs1ioBtiUgUMih52w3IwOWLV0hoX1w=",
|
"narHash": "sha256-J0qKDH7bTrzDYjLzwXiaGE2pdaL/OycvRy/6h6Ih2oo=",
|
||||||
"owner": "msyds",
|
"path": "/home/crumb/git/home-manager",
|
||||||
"repo": "home-manager",
|
"type": "path"
|
||||||
"rev": "7b87c2d8b9ad72e83402f8fc6dde24e76b28ee67",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "msyds",
|
"path": "/home/crumb/git/home-manager",
|
||||||
"ref": "service-mpdscribble",
|
"type": "path"
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager_2": {
|
"home-manager_2": {
|
||||||
@@ -471,11 +467,11 @@
|
|||||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742280890,
|
"lastModified": 1742832363,
|
||||||
"narHash": "sha256-Kluc8ORAYjyPA5gD4HfXiv7bxmGftGAQ5eFAJ7uJwiE=",
|
"narHash": "sha256-STJUQ7PVfjlWdHSuxXDH/UZNjrUVO1Up/x2AwhtJRio=",
|
||||||
"owner": "sodiboo",
|
"owner": "sodiboo",
|
||||||
"repo": "niri-flake",
|
"repo": "niri-flake",
|
||||||
"rev": "808d8bf8cd9adb4bd20ba9411346d42ece5de4ca",
|
"rev": "8720365191e3931cefd3fc9484dccba5e219b73d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -504,11 +500,11 @@
|
|||||||
"niri-unstable": {
|
"niri-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742276600,
|
"lastModified": 1742719554,
|
||||||
"narHash": "sha256-muceB5DW++WPqrGKpX3Hkii/DNSMmFs2oQrYRYHmPiU=",
|
"narHash": "sha256-zBB/Niset99u6/b6z9hS2IYfDigDI9huiG0QXvDKDS4=",
|
||||||
"owner": "YaLTeR",
|
"owner": "YaLTeR",
|
||||||
"repo": "niri",
|
"repo": "niri",
|
||||||
"rev": "e251ca7340bc71870c3a81a7ffc3d9bde58e685a",
|
"rev": "c709696237f3e963225b8df248538cc691ccba3d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -591,11 +587,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741445498,
|
"lastModified": 1742751704,
|
||||||
"narHash": "sha256-F5Em0iv/CxkN5mZ9hRn3vPknpoWdcdCyR0e4WklHwiE=",
|
"narHash": "sha256-rBfc+H1dDBUQ2mgVITMGBPI1PGuCznf9rcWX/XIULyE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "52e3095f6d812b91b22fb7ad0bfc1ab416453634",
|
"rev": "f0946fa5f1fb876a9dc2e1850d9d3a4e3f914092",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -607,11 +603,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable_2": {
|
"nixpkgs-stable_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742136038,
|
"lastModified": 1742512142,
|
||||||
"narHash": "sha256-DDe16FJk18sadknQKKG/9FbwEro7A57tg9vB5kxZ8kY=",
|
"narHash": "sha256-8XfURTDxOm6+33swQJu/hx6xw1Tznl8vJJN5HwVqckg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a1185f4064c18a5db37c5c84e5638c78b46e3341",
|
"rev": "7105ae3957700a9646cc4b766f5815b23ed0c682",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -671,11 +667,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737879851,
|
"lastModified": 1741402956,
|
||||||
"narHash": "sha256-H+FXIKj//kmFHTTW4DFeOjR7F1z2/3eb2iwN6Me4YZk=",
|
"narHash": "sha256-y2hByvBM03s9T2fpeLjW6iprbxnhV9mJMmSwCHc41ZQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5d3221fd57cc442a1a522a15eb5f58230f45a304",
|
"rev": "ed0b1881565c1ffef490c10d663d4f542031dad3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -687,11 +683,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741513245,
|
"lastModified": 1742669843,
|
||||||
"narHash": "sha256-7rTAMNTY1xoBwz0h7ZMtEcd8LELk9R5TzBPoHuhNSCk=",
|
"narHash": "sha256-G5n+FOXLXcRx+3hCJ6Rt6ZQyF1zqQ0DL0sWAMn2Nk0w=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e3e32b642a31e6714ec1b712de8c91a3352ce7e1",
|
"rev": "1e5b653dff12029333a6546c11e108ede13052eb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -703,11 +699,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741010256,
|
"lastModified": 1742422364,
|
||||||
"narHash": "sha256-WZNlK/KX7Sni0RyqLSqLPbK8k08Kq7H7RijPJbq9KHM=",
|
"narHash": "sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ba487dbc9d04e0634c64e3b1f0d25839a0a68246",
|
"rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -719,11 +715,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742069588,
|
"lastModified": 1742422364,
|
||||||
"narHash": "sha256-C7jVfohcGzdZRF6DO+ybyG/sqpo1h6bZi9T56sxLy+k=",
|
"narHash": "sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c80f6a7e10b39afcc1894e02ef785b1ad0b0d7e5",
|
"rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -767,11 +763,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_8": {
|
"nixpkgs_8": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738517419,
|
"lastModified": 1742738698,
|
||||||
"narHash": "sha256-tttEXgKimgbtPvxFl+Avos4P4lssIqxHhxpLbbvNekk=",
|
"narHash": "sha256-KCtAXWwQs03JmEhP4ss59QVzT+rHZkhQO85KjNy8Crc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8532db2a88ba56de9188af72134d93e39fd825f3",
|
"rev": "f3a2a0601e9669a6e38af25b46ce6c4563bcb6da",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -783,11 +779,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_9": {
|
"nixpkgs_9": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731763621,
|
"lastModified": 1742578646,
|
||||||
"narHash": "sha256-ddcX4lQL0X05AYkrkV2LMFgGdRvgap7Ho8kgon3iWZk=",
|
"narHash": "sha256-GiQ40ndXRnmmbDZvuv762vS+gew1uDpFwOfgJ8tLiEs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c69a9bffbecde46b4b939465422ddc59493d3e4d",
|
"rev": "94c4dbe77c0740ebba36c173672ca15a7926c993",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -806,11 +802,11 @@
|
|||||||
"treefmt-nix": "treefmt-nix_2"
|
"treefmt-nix": "treefmt-nix_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741373419,
|
"lastModified": 1742849190,
|
||||||
"narHash": "sha256-RkLmZob4GnlKntjO26io6wf6haE24pcTr3jAljMJ45c=",
|
"narHash": "sha256-Isnx5t+L/G7AxpUwNvFgPiYc4IcZjdBrg3MIVz1cfnk=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "4463e6382eca077dbd3c74ae336aef516221b4fc",
|
"rev": "797067d7e3601713a3b43f823248a6232486376c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -863,11 +859,11 @@
|
|||||||
"nixpkgs": "nixpkgs_9"
|
"nixpkgs": "nixpkgs_9"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738291974,
|
"lastModified": 1742700801,
|
||||||
"narHash": "sha256-wkwYJc8cKmmQWUloyS9KwttBnja2ONRuJQDEsmef320=",
|
"narHash": "sha256-ZGlpUDsuBdeZeTNgoMv+aw0ByXT2J3wkYw9kJwkAS4M=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "4c1251904d8a08c86ac6bc0d72cc09975e89aef7",
|
"rev": "67566fe68a8bed2a7b1175fdfb0697ed22ae8852",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -898,11 +894,11 @@
|
|||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742234510,
|
"lastModified": 1742855382,
|
||||||
"narHash": "sha256-dQoo4XivjZuJiSi8ePv9CuP0ncE64RLyz2vb46blRx0=",
|
"narHash": "sha256-C/aBeGktWiRg2EoSc0Aug8v+cZirSkyoVtMx1P0Dex0=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "fa288c0dc695b49c9af38614af8da981371fe92a",
|
"rev": "5321ab0c763caa786c9756a8e8e85d1c35a8e650",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1135,11 +1131,11 @@
|
|||||||
"xwayland-satellite-unstable": {
|
"xwayland-satellite-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742249030,
|
"lastModified": 1742671548,
|
||||||
"narHash": "sha256-YZ+axsuNsgIKWfnRkt6Qa9UoKfUOIWf42vNUonXxmxM=",
|
"narHash": "sha256-nJK70IyhyOXth5Dcyv7DKtv95TTZkqcAYHVj4Uq2Blw=",
|
||||||
"owner": "Supreeeme",
|
"owner": "Supreeeme",
|
||||||
"repo": "xwayland-satellite",
|
"repo": "xwayland-satellite",
|
||||||
"rev": "cca74a5f6b23742d77dc5db4312dfc40fd4a0fcc",
|
"rev": "0fa13c6fb43ae26a597103989a42e44a03d2d827",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
# We're using my branch until #6259 is merged.
|
# We're using my branch until #6259 is merged.
|
||||||
home-manager.url = "github:msyds/home-manager/service-mpdscribble";
|
# home-manager.url = "github:msyds/home-manager/service-mpdscribble";
|
||||||
# home-manager.url = "path:///persist/dots/DELETE-ME/home-manager";
|
home-manager.url = "path:///home/crumb/git/home-manager";
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
sydnix-cli.url = "path:///persist/dots/scripts/sydnix-cli";
|
sydnix-cli.url = "path:///persist/dots/scripts/sydnix-cli";
|
||||||
copyparty.url = "github:9001/copyparty";
|
copyparty.url = "github:9001/copyparty";
|
||||||
|
|||||||
@@ -63,8 +63,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.displayManager.sddm.enable = true;
|
services.displayManager.sddm = {
|
||||||
services.desktopManager.plasma6.enable = true;
|
enable = true;
|
||||||
|
wayland.enable = true;
|
||||||
|
autoNumlock = true;
|
||||||
|
};
|
||||||
|
# services.desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
services.xserver.xkb.layout = "us";
|
services.xserver.xkb.layout = "us";
|
||||||
services.xserver.xkb.options = "ctrl:swapcaps";
|
services.xserver.xkb.options = "ctrl:swapcaps";
|
||||||
|
|||||||
@@ -6,12 +6,17 @@
|
|||||||
./disks.nix
|
./disks.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||||
|
v4l2loopback
|
||||||
|
];
|
||||||
|
|
||||||
sydnix = {
|
sydnix = {
|
||||||
filesystemType = "btrfs";
|
filesystemType = "btrfs";
|
||||||
|
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
niri.enable = true;
|
niri.enable = true;
|
||||||
stylix.enable = true;
|
stylix.enable = true;
|
||||||
|
qemu.enable = true;
|
||||||
|
|
||||||
users.users = [
|
users.users = [
|
||||||
"crumb"
|
"crumb"
|
||||||
@@ -73,7 +78,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.displayManager.sddm.enable = true; # WAIT4NIRI
|
services.displayManager.sddm.enable = true; # WAIT4NIRI
|
||||||
services.desktopManager.plasma6.enable = true; # WAIT4NIRI
|
# services.desktopManager.plasma6.enable = true; # WAIT4NIRI
|
||||||
|
|
||||||
services.libinput = {
|
services.libinput = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -87,11 +92,15 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
|
# Pulseaudio compatibility layer.
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
wireplumber.enable = true;
|
wireplumber.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.pulseaudio.package = pkgs.pulseaudioFull;
|
# Ensure pipewire processes get realtime priority.
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
# services.pulseaudio.package = pkgs.pulseaudioFull;
|
||||||
|
|
||||||
# Usually we try to delegate declarations of globally-available packages to
|
# Usually we try to delegate declarations of globally-available packages to
|
||||||
# separate modules. These are some exceptional essentials.
|
# separate modules. These are some exceptional essentials.
|
||||||
|
|||||||
@@ -14,11 +14,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
scrobbling = {
|
scrobbling = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Enable scrobbling for MPD via mpdscribble.";
|
||||||
description = "Enable scrobbling for MPD via mpdscribble.";
|
|
||||||
type = types.bool;
|
|
||||||
default = cfg.enable;
|
|
||||||
};
|
|
||||||
|
|
||||||
endpoints = mkOption {
|
endpoints = mkOption {
|
||||||
type = types.attrsOf (types.submodule ({ ... }: {
|
type = types.attrsOf (types.submodule ({ ... }: {
|
||||||
@@ -35,16 +31,22 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
discord = {
|
discord = {
|
||||||
enable = mkOption {
|
enable =
|
||||||
description = "Enable Discord integration for MPD via mpd-discord-rpc.";
|
mkEnableOption "Discord integration for MPD via mpd-discord-rpc";
|
||||||
type = types.bool;
|
|
||||||
default = cfg.enable;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
sydnix.impermanence.directories =
|
||||||
|
let xdg-state-dir =
|
||||||
|
config.home.statehome
|
||||||
|
or "${config.home.homeDirectory}/.local/state";
|
||||||
|
in [
|
||||||
|
(lib.removePrefix
|
||||||
|
config.home.homeDirectory
|
||||||
|
"${xdg-state-dir}/mpd")
|
||||||
|
];
|
||||||
services.mpd = {
|
services.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
musicDirectory = cfg.musicDirectory;
|
musicDirectory = cfg.musicDirectory;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ in {
|
|||||||
vesktop = {
|
vesktop = {
|
||||||
state.firstLaunch = false;
|
state.firstLaunch = false;
|
||||||
settings = {
|
settings = {
|
||||||
discordBranch = "stable";
|
discordBranch = "canary";
|
||||||
minimizeToTray = false;
|
minimizeToTray = false;
|
||||||
arRPC = true;
|
arRPC = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -63,8 +63,9 @@
|
|||||||
(require 'syd-projects)
|
(require 'syd-projects)
|
||||||
(require 'syd-scratch)
|
(require 'syd-scratch)
|
||||||
(require 'syd-smartparens)
|
(require 'syd-smartparens)
|
||||||
|
(require 'syd-snippets)
|
||||||
(require 'syd-tabs)
|
(require 'syd-tabs)
|
||||||
(require 'syd-tooling)
|
(require 'syd-tooling)
|
||||||
(require 'syd-tramp)
|
(require 'syd-tramp)
|
||||||
|
(require 'syd-trust)
|
||||||
(require 'syd-ui)
|
(require 'syd-ui)
|
||||||
|
|
||||||
|
|||||||
@@ -24,11 +24,12 @@
|
|||||||
;; Managed by Nix: libenchant dependency.
|
;; Managed by Nix: libenchant dependency.
|
||||||
:straight nil
|
:straight nil
|
||||||
:commands (jinx-mode jinx-correct jinx-correct-word)
|
:commands (jinx-mode jinx-correct jinx-correct-word)
|
||||||
:init (defun syd-jinx--jinx-or-ispell ()
|
:init
|
||||||
(interactive)
|
(defun syd-jinx--jinx-or-ispell ()
|
||||||
(if (bound-and-true-p jinx-mode)
|
(interactive)
|
||||||
(call-interactively #'jinx-correct-word)
|
(if (bound-and-true-p jinx-mode)
|
||||||
(call-interactively #'ispell-word)))
|
(call-interactively #'jinx-correct-word)
|
||||||
|
(call-interactively #'ispell-word)))
|
||||||
:general (:states '(normal visual)
|
:general (:states '(normal visual)
|
||||||
"z =" #'syd-jinx--jinx-or-ispell)
|
"z =" #'syd-jinx--jinx-or-ispell)
|
||||||
:config
|
:config
|
||||||
|
|||||||
@@ -72,7 +72,13 @@
|
|||||||
"r r" #'cider-ns-refresh
|
"r r" #'cider-ns-refresh
|
||||||
"r R" #'cider-restart
|
"r R" #'cider-restart
|
||||||
"r q" #'cider-quit
|
"r q" #'cider-quit
|
||||||
|
"d d" #'cider-debug-defun-at-point
|
||||||
|
"M-:" #'cider-read-and-eval
|
||||||
|
"h d" #'cider-doc
|
||||||
"h c" #'cider-cheatsheet)
|
"h c" #'cider-cheatsheet)
|
||||||
|
(:keymaps 'cider-repl-mode-map
|
||||||
|
:states 'insert
|
||||||
|
"S-<return>" #'cider-repl-newline-and-indent)
|
||||||
:config
|
:config
|
||||||
(add-hook 'cider-mode-hook #'eldoc-mode)
|
(add-hook 'cider-mode-hook #'eldoc-mode)
|
||||||
(add-hook 'cider-repl-mode-hook #'syd-lisp-mode)
|
(add-hook 'cider-repl-mode-hook #'syd-lisp-mode)
|
||||||
@@ -91,7 +97,9 @@
|
|||||||
(,(rx bol "*cider-doc*")
|
(,(rx bol "*cider-doc*")
|
||||||
:slot 2 :vslot -8 :quit t :select t)))
|
:slot 2 :vslot -8 :quit t :select t)))
|
||||||
;; DEPRECATED: Remove once syd-strategies is working.
|
;; DEPRECATED: Remove once syd-strategies is working.
|
||||||
(syd-add-hook 'clojure-mode-hook
|
(syd-add-hook '(clojure-mode-hook
|
||||||
|
clojurescript-mode-hook
|
||||||
|
cider-repl-mode-hook)
|
||||||
(defun syd-clojure-set-handlers-h ()
|
(defun syd-clojure-set-handlers-h ()
|
||||||
(setq-local syd-lookup-documentation-handlers
|
(setq-local syd-lookup-documentation-handlers
|
||||||
(list #'cider-doc))))
|
(list #'cider-doc))))
|
||||||
|
|||||||
9
modules/home/users/crumb/emacs/modules/syd-snippets.el
Normal file
9
modules/home/users/crumb/emacs/modules/syd-snippets.el
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
;;; syd-snippets.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(use-package yasnippet
|
||||||
|
:hook (on-first-input . yas-global-mode))
|
||||||
|
|
||||||
|
(use-package yasnippet-snippets
|
||||||
|
:after yasnippet)
|
||||||
|
|
||||||
|
(provide 'syd-snippets)
|
||||||
7
modules/home/users/crumb/emacs/modules/syd-trust.el
Normal file
7
modules/home/users/crumb/emacs/modules/syd-trust.el
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
;;; syd-trust.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(setq safe-local-variable-directories
|
||||||
|
(list "/persist/dots"
|
||||||
|
(expand-file-name "~/org")))
|
||||||
|
|
||||||
|
(provide 'syd-trust)
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
;;; .yas-setup.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(require 'dash)
|
||||||
|
(require 's)
|
||||||
|
|
||||||
|
(defun snippet-bibtex--make-id ()
|
||||||
|
(let ((surname (--> (or (yas-field-value 2)
|
||||||
|
"surname")
|
||||||
|
(s-downcase it)
|
||||||
|
(string-to-list it)
|
||||||
|
(-take-while (lambda (x) (/= x ?,)) it)
|
||||||
|
(-filter (lambda (x) (not (memq x '(?- ?\s)))) it)
|
||||||
|
(apply #'string it)))
|
||||||
|
(year (--> (or (yas-field-value 3)
|
||||||
|
"1234")
|
||||||
|
(string-to-list it)
|
||||||
|
(-take-while (lambda (x) (<= ?0 x ?9)) it)
|
||||||
|
(apply #'string it)))
|
||||||
|
(keyword (or (-some--> (or (yas-field-value 1)
|
||||||
|
"keyword")
|
||||||
|
(s-downcase it)
|
||||||
|
(s-split-words it)
|
||||||
|
(-find (lambda (x)
|
||||||
|
(not (member x '("the" "on" "of" "a" "when"))))
|
||||||
|
it))
|
||||||
|
"keyword")))
|
||||||
|
(concat surname year keyword)))
|
||||||
13
modules/home/users/crumb/emacs/snippets/bibtex-mode/@art
Normal file
13
modules/home/users/crumb/emacs/snippets/bibtex-mode/@art
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Article
|
||||||
|
# uuid:
|
||||||
|
# key: @art
|
||||||
|
# condition: t
|
||||||
|
# --
|
||||||
|
@article{${1:$(snippet-bibtex--make-id)}
|
||||||
|
, title = {${1:Principia Mathematica}}
|
||||||
|
, author = {${2:of Sinope, Diogenes}}
|
||||||
|
, year = {${3:1992}}
|
||||||
|
, url = {${4:https://example.com/}}
|
||||||
|
, urldate = {${5:`(format-time-string "%Y-%m-%d")`}}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: foreign
|
||||||
|
# uuid: haskell-foreign
|
||||||
|
# key: foreign
|
||||||
|
# condition: t
|
||||||
|
# --
|
||||||
|
|
||||||
|
foreign import ccall unsafe "src/bridge.c $1"
|
||||||
|
$1 :: $2
|
||||||
21
modules/home/users/crumb/emacs/snippets/nix-mode/__module
Normal file
21
modules/home/users/crumb/emacs/snippets/nix-mode/__module
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Nix module
|
||||||
|
# uuid:
|
||||||
|
# key: __module
|
||||||
|
# condition: t
|
||||||
|
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil) (this-current-file-name (file-name-base (buffer-file-name (current-buffer)))))
|
||||||
|
# --
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let cfg = config.${1:`this-current-file-name`};
|
||||||
|
in {
|
||||||
|
options.$1 = {
|
||||||
|
enable = mkEnableOption "$2";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
$3
|
||||||
|
};
|
||||||
|
}
|
||||||
7
modules/home/users/crumb/emacs/snippets/nix-mode/enable
Normal file
7
modules/home/users/crumb/emacs/snippets/nix-mode/enable
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: enable
|
||||||
|
# uuid:
|
||||||
|
# key: enable
|
||||||
|
# condition: t
|
||||||
|
# --
|
||||||
|
enable = lib.mkEnableOption "$1";
|
||||||
@@ -100,7 +100,22 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
profiles."msyds" = {
|
profiles."msyds" = {
|
||||||
bookmarks = [];
|
bookmarks = {
|
||||||
|
force = true;
|
||||||
|
settings = [
|
||||||
|
{
|
||||||
|
name = "Nix";
|
||||||
|
toolbar = true;
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Home-manager options";
|
||||||
|
tags = [ "nix" "docs" ];
|
||||||
|
url = "https://nix-community.github.io/home-manager/options.xhtml";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Check about:support for extension/add-on ID strings.
|
# Check about:support for extension/add-on ID strings.
|
||||||
extensions = {
|
extensions = {
|
||||||
@@ -186,9 +201,9 @@ in {
|
|||||||
# Override non-declared settings.
|
# Override non-declared settings.
|
||||||
force = true;
|
force = true;
|
||||||
# Precedence of search engines.
|
# Precedence of search engines.
|
||||||
order = [ "Kagi" "DuckDuckGo" ];
|
order = [ "Kagi" "ddg" ];
|
||||||
default = "Kagi";
|
default = "Kagi";
|
||||||
privateDefault = "DuckDuckGo";
|
privateDefault = "ddg";
|
||||||
engines = {
|
engines = {
|
||||||
"Kagi" = {
|
"Kagi" = {
|
||||||
urls = [{
|
urls = [{
|
||||||
@@ -198,6 +213,18 @@ in {
|
|||||||
];
|
];
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
"Nixopts" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/options";
|
||||||
|
params = [
|
||||||
|
{ name = "channel"; value = "unstable"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
icon =
|
||||||
|
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "!no" ];
|
||||||
|
};
|
||||||
"Nixpkgs" = {
|
"Nixpkgs" = {
|
||||||
urls = [{
|
urls = [{
|
||||||
template = "https://search.nixos.org/packages";
|
template = "https://search.nixos.org/packages";
|
||||||
|
|||||||
@@ -14,26 +14,27 @@ in {
|
|||||||
|
|
||||||
sydnix.mpd = {
|
sydnix.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
scrobbling.endpoints = {
|
discord.enable = true;
|
||||||
"last.fm" = {
|
scrobbling = {
|
||||||
passwordFile =
|
enable = true;
|
||||||
"/home/crumb/.config/sops-nix/secrets/lastfm-password";
|
endpoints = {
|
||||||
username = "crumb1";
|
"last.fm" = {
|
||||||
};
|
passwordFile =
|
||||||
"libre.fm" = {
|
"/home/crumb/.config/sops-nix/secrets/lastfm-password";
|
||||||
passwordFile =
|
username = "crumb1";
|
||||||
"/home/crumb/.config/sops-nix/secrets/librefm-password";
|
};
|
||||||
username = "crumbtoo";
|
"libre.fm" = {
|
||||||
|
passwordFile =
|
||||||
|
"/home/crumb/.config/sops-nix/secrets/librefm-password";
|
||||||
|
username = "crumbtoo";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# mpdscribble uses our password files, so it is imperative that the service
|
# Mpdscribble uses our password files, so it is imperative that the service
|
||||||
# runs only after said password files are brought into existence. }:)
|
# runs only after said password files are brought into existence. }:)
|
||||||
systemd.user.services.mpdscribble.Unit = {
|
# systemd.user.services.mpdscribble.Unit.After = [ "sops-nix.service" ];
|
||||||
After = [ "sops-nix.service" ];
|
|
||||||
WantedBy = [ "mpd.service" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ in {
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
stylix.targets.swaylock.enable = true;
|
stylix.targets.swaylock.enable = true;
|
||||||
|
|
||||||
programs.niri = {
|
programs.niri = {
|
||||||
# Activates some Nixpkgs patches to help run Electron applications under
|
# Activates some Nixpkgs patches to help run Electron applications under
|
||||||
# Wayland.
|
# Wayland.
|
||||||
@@ -57,7 +57,7 @@ in {
|
|||||||
layout = {
|
layout = {
|
||||||
gaps = 8;
|
gaps = 8;
|
||||||
# center-focused-column = "always";
|
# center-focused-column = "always";
|
||||||
center-focused-column = "on-overflow";
|
center-focused-column = "never";
|
||||||
preset-column-widths = [
|
preset-column-widths = [
|
||||||
{ proportion = 1.0 / 3.0; }
|
{ proportion = 1.0 / 3.0; }
|
||||||
{ proportion = 1.0 / 2.0; }
|
{ proportion = 1.0 / 2.0; }
|
||||||
@@ -91,6 +91,12 @@ in {
|
|||||||
size = 24;
|
size = 24;
|
||||||
};
|
};
|
||||||
window-rules = [
|
window-rules = [
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
{ title = "Element.*wishdir"; }
|
||||||
|
];
|
||||||
|
block-out-from = "screen-capture";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
# This regular expression is intentionally made as specific as
|
# This regular expression is intentionally made as specific as
|
||||||
# possible, since this is the default config, and we want no false
|
# possible, since this is the default config, and we want no false
|
||||||
|
|||||||
@@ -8,6 +8,24 @@ in {
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.niri.enable = true;
|
programs.niri.enable = true;
|
||||||
|
|
||||||
|
# Necessary for e.g. screensharing.
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
# See https://github.com/YaLTeR/niri/wiki/Important-Software#portals.
|
||||||
|
# Niri's NixOS module appears to automatically bring in
|
||||||
|
# xdg-desktop-portal-gnome and gnome-keyring.
|
||||||
|
extraPortals = [
|
||||||
|
pkgs.xdg-desktop-portal-gtk
|
||||||
|
pkgs.xdg-desktop-portal-wlr
|
||||||
|
];
|
||||||
|
xdgOpenUsePortal = true;
|
||||||
|
config.preferred = {
|
||||||
|
default = [ "gtk" ];
|
||||||
|
"org.freedesktop.impl.portal.Screenshot" = [ "wlr" ];
|
||||||
|
"org.freedesktop.impl.portal.ScreenCast" = [ "wlr" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
29
modules/nixos/qemu.nix
Normal file
29
modules/nixos/qemu.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let cfg = config.sydnix.qemu;
|
||||||
|
in {
|
||||||
|
options.sydnix.qemu = {
|
||||||
|
enable = mkEnableOption "Qemu";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable
|
||||||
|
(let
|
||||||
|
# Necessary for UEFI boot with libvirt.
|
||||||
|
qemu-uefi = pkgs.writeShellScriptBin "qemu-system-x86_64-uefi" ''
|
||||||
|
qemu-system-x86_64 \
|
||||||
|
-bios ${pkgs.OVMF.fd}/FV/OVMF.fd \
|
||||||
|
"$@"
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.virtiofsd
|
||||||
|
qemu-uefi
|
||||||
|
];
|
||||||
|
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|||||||
Reference in New Issue
Block a user