Compare commits
No commits in common. "20227371973bb40fa02f58a40a30d877307358b8" and "3496cf4fd8ed69adfdc3fdc6d47bc06aca9a1fb2" have entirely different histories.
2022737197
...
3496cf4fd8
158
flake.lock
158
flake.lock
|
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768920986,
|
"lastModified": 1746728054,
|
||||||
"narHash": "sha256-CNzzBsRhq7gg4BMBuTDObiWDH/rFYHEuDRVOwCcwXw4=",
|
"narHash": "sha256-eDoSOhxGEm2PykZFa/x9QG5eTH0MJdiJ9aR00VAofXE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "de5708739256238fb912c62f03988815db89ec9a",
|
"rev": "ff442f5d1425feb86344c028298548024f21256d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -21,32 +21,16 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767039857,
|
|
||||||
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772408722,
|
"lastModified": 1765495779,
|
||||||
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
|
"narHash": "sha256-MhA7wmo/7uogLxiewwRRmIax70g6q1U/YemqTGoFHlM=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
|
"rev": "5635c32d666a59ec9a55cab87e898889869f7b71",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -63,11 +47,11 @@
|
||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772974802,
|
"lastModified": 1765911005,
|
||||||
"narHash": "sha256-SEe6mMTwceijwzeeQ4dauWuuEwkdqobSbDgiwqQwnxI=",
|
"narHash": "sha256-avaLO3hlDITEagKvoUC0KtgZif3tyx8LpNSf9R5keNk=",
|
||||||
"owner": "wamserma",
|
"owner": "wamserma",
|
||||||
"repo": "flake-programs-sqlite",
|
"repo": "flake-programs-sqlite",
|
||||||
"rev": "7ac37009c7b3fa6c1a1d076f3181a695401f7d31",
|
"rev": "c98fbcdffe90188fc52c54b04d06f5dff4a2852f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -76,51 +60,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"git-hooks": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nix-gaming",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1772893680,
|
|
||||||
"narHash": "sha256-JDqZMgxUTCq85ObSaFw0HhE+lvdOre1lx9iI6vYyOEs=",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"rev": "8baab586afc9c9b57645a734c820e4ac0a604af9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gitignore": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nix-gaming",
|
|
||||||
"git-hooks",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709087332,
|
|
||||||
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -128,11 +67,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772985285,
|
"lastModified": 1765860045,
|
||||||
"narHash": "sha256-wEEmvfqJcl9J0wyMgMrj1TixOgInBW/6tLPhWGoZE3s=",
|
"narHash": "sha256-7Lxp/PfOy4h3QIDtmWG/EgycaswqRSkDX4DGtet14NE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "5be5d8245cbc7bc0c09fbb5f38f23f223c543f85",
|
"rev": "09de9577d47d8bffb11c449b6a3d24e32ac16c99",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -144,17 +83,16 @@
|
||||||
"nix-gaming": {
|
"nix-gaming": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"git-hooks": "git-hooks",
|
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772937574,
|
"lastModified": 1765937051,
|
||||||
"narHash": "sha256-Yw1tP/ASebNYuW2GcYDTgWf2Mg9qcUYo6MTagXyeFCs=",
|
"narHash": "sha256-JBbnxGZDzLtYoqragAnTrpLMAEWMJoQAMpAx2k0hIYg=",
|
||||||
"owner": "fufexan",
|
"owner": "fufexan",
|
||||||
"repo": "nix-gaming",
|
"repo": "nix-gaming",
|
||||||
"rev": "d2b0b283deb24cdbb2750e658fa7001fee5ad586",
|
"rev": "64cbe149f26ca2c6687ca5ab4f294d0b87c6ffb8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -165,11 +103,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772773019,
|
"lastModified": 1765779637,
|
||||||
"narHash": "sha256-E1bxHxNKfDoQUuvriG71+f+s/NT0qWkImXsYZNFFfCs=",
|
"narHash": "sha256-KJ2wa/BLSrTqDjbfyNx70ov/HdgNBCBBSQP3BIzKnv4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "aca4d95fce4914b3892661bcb80b8087293536c6",
|
"rev": "1306659b587dc277866c7b69eb97e5f07864d8c4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -181,11 +119,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772328832,
|
"lastModified": 1761765539,
|
||||||
"narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
|
"narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs.lib",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
|
"rev": "719359f4562934ae99f5443f20aa06c2ffff91fc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -220,11 +158,11 @@
|
||||||
"uv2nix": "uv2nix"
|
"uv2nix": "uv2nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772763464,
|
"lastModified": 1765834918,
|
||||||
"narHash": "sha256-1IEO166bp1yLwyWE1tl6dJDzL6fniu4+OdeSJpkUwD4=",
|
"narHash": "sha256-jCX7Pi9T3bwDfLgTM3xMFvjMXGGmAe5lBXPcxsmsLqI=",
|
||||||
"owner": "pwndbg",
|
"owner": "pwndbg",
|
||||||
"repo": "pwndbg",
|
"repo": "pwndbg",
|
||||||
"rev": "2b1c3b4f91f05aca4ed8b17d0c7a634b55d8f754",
|
"rev": "dfdfbd4f7bd45869d7b4b7d3e4418aede29359d2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -249,11 +187,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763662255,
|
"lastModified": 1757296493,
|
||||||
"narHash": "sha256-4bocaOyLa3AfiS8KrWjZQYu+IAta05u3gYZzZ6zXbT0=",
|
"narHash": "sha256-6nzSZl28IwH2Vx8YSmd3t6TREHpDbKlDPK+dq1LKIZQ=",
|
||||||
"owner": "pyproject-nix",
|
"owner": "pyproject-nix",
|
||||||
"repo": "build-system-pkgs",
|
"repo": "build-system-pkgs",
|
||||||
"rev": "042904167604c681a090c07eb6967b4dd4dae88c",
|
"rev": "5b8e37fe0077db5c1df3a5ee90a651345f085d38",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -270,11 +208,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769936401,
|
"lastModified": 1757246327,
|
||||||
"narHash": "sha256-kwCOegKLZJM9v/e/7cqwg1p/YjjTAukKPqmxKnAZRgA=",
|
"narHash": "sha256-6pNlGhwOIMfhe/RLjHdpXveKS4FyLHvlGe+KtjDild4=",
|
||||||
"owner": "pyproject-nix",
|
"owner": "pyproject-nix",
|
||||||
"repo": "pyproject.nix",
|
"repo": "pyproject.nix",
|
||||||
"rev": "b0d513eeeebed6d45b4f2e874f9afba2021f7812",
|
"rev": "8d77f342d66ad1601cdb9d97e9388b69f64d4c8e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -302,11 +240,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772944399,
|
"lastModified": 1765836173,
|
||||||
"narHash": "sha256-xTzsSd3r5HBeufSZ3fszAn0ldfKctvsYG7tT2YJg5gY=",
|
"narHash": "sha256-hWRYfdH2ONI7HXbqZqW8Q1y9IRbnXWvtvt/ONZovSNY=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "c8e69670b316d6788e435a3aa0bda74eb1b82cc0",
|
"rev": "443a7f2e7e118c4fc63b7fae05ab3080dd0e5c63",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -315,31 +253,13 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"utils": {
|
"utils": {
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1678901627,
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
"narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
"rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -360,11 +280,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769957392,
|
"lastModified": 1756973152,
|
||||||
"narHash": "sha256-6PkqwwYf5K2CHi2V+faI/9pqjfz/HxUkI/MVid6hlOY=",
|
"narHash": "sha256-9JcKAA7T9J98LWdcxbXvmf+amQG3ZErxqQnBjEJI04I=",
|
||||||
"owner": "pyproject-nix",
|
"owner": "pyproject-nix",
|
||||||
"repo": "uv2nix",
|
"repo": "uv2nix",
|
||||||
"rev": "d18bc50ae1c3d4be9c41c2d94ea765524400af75",
|
"rev": "64298e806f4a5f63a51c625edc100348138491aa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
boot.extraModulePackages = [config.boot.kernelPackages.it87];
|
boot.extraModulePackages = [config.boot.kernelPackages.it87];
|
||||||
boot.kernelParams = ["acpi_enforce_resources=lax" "default_hugepagesz=1G" "hugepagesz=1G" "hugepages=33"];
|
boot.kernelParams = ["acpi_enforce_resources=lax"];
|
||||||
boot.kernelModules = ["it87"];
|
boot.kernelModules = ["it87"];
|
||||||
boot.extraModprobeConfig = "options it87 ignore_resource_conflict=1 force_id=0x8622";
|
boot.extraModprobeConfig = "options it87 ignore_resource_conflict=1 force_id=0x8622";
|
||||||
services.getty = {
|
services.getty = {
|
||||||
|
|
@ -26,10 +26,7 @@
|
||||||
time.timeZone = "America/Chicago";
|
time.timeZone = "America/Chicago";
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
videoDrivers = ["nvidia"];
|
videoDrivers = ["nvidia"];
|
||||||
deviceSection = ''
|
deviceSection = ''Option "TearFree" "true"'';
|
||||||
VendorName "NVIDIA Corporation"
|
|
||||||
BusID "PCI:16:0:0"
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
hardware.nvidia.open = true;
|
hardware.nvidia.open = true;
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
|
@ -43,7 +40,7 @@
|
||||||
|
|
||||||
users.users.ahnwuoa = {
|
users.users.ahnwuoa = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = ["wheel" "audio" "kvm"];
|
extraGroups = ["wheel"];
|
||||||
};
|
};
|
||||||
boot.loader.grub.extraEntries = ''
|
boot.loader.grub.extraEntries = ''
|
||||||
menuentry "UEFI Firmware Settings" {
|
menuentry "UEFI Firmware Settings" {
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,12 @@
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(self: super: {
|
(self: super: {
|
||||||
nsxiv = super.nsxiv.overrideAttrs (old: {
|
nsxiv = super.nsxiv.overrideAttrs (old: {
|
||||||
buildInputs = old.buildInputs ++ [super.libxcursor];
|
buildInputs = old.buildInputs ++ [super.xorg.libXcursor];
|
||||||
env.NIX_LDFLAGS = "-lXcursor";
|
env.NIX_LDFLAGS = "-lXcursor";
|
||||||
patches = [./nsxiv.diff];
|
patches = [./nsxiv.diff];
|
||||||
});
|
});
|
||||||
maim = super.maim.overrideAttrs (old: {
|
maim = super.maim.overrideAttrs (old: {
|
||||||
buildInputs = old.buildInputs ++ [super.libxcursor];
|
buildInputs = old.buildInputs ++ [super.xorg.libXcursor];
|
||||||
env.NIX_LDFLAGS = "-lXcursor";
|
env.NIX_LDFLAGS = "-lXcursor";
|
||||||
});
|
});
|
||||||
ki = super.ki.overrideAttrs (old: {
|
ki = super.ki.overrideAttrs (old: {
|
||||||
|
|
|
||||||
|
|
@ -33,12 +33,6 @@ lib.mkIf config.u.has.graphical {
|
||||||
in [application-menu];
|
in [application-menu];
|
||||||
services.libinput = {
|
services.libinput = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mouse = {
|
mouse.accelProfile = "flat";
|
||||||
accelProfile = "flat";
|
|
||||||
middleEmulation = false;
|
|
||||||
additionalOptions = ''
|
|
||||||
Option "HighResolutionWheelScrolling" "0"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{config, ...}: {
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
virtualisation.containers.enable = config.u.has.container;
|
virtualisation.containers.enable = config.u.has.container;
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
podman = {
|
podman = {
|
||||||
|
|
@ -13,25 +8,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
virtualisation.libvirtd.enable = config.u.has.virt;
|
virtualisation.libvirtd.enable = config.u.has.virt;
|
||||||
virtualisation.libvirtd.package = pkgs.libvirt.overrideAttrs (old: {
|
|
||||||
postPatch =
|
|
||||||
old.postPatch
|
|
||||||
+ (
|
|
||||||
let
|
|
||||||
script = pkgs.writeShellApplication {
|
|
||||||
name = "virt-secret-init-encryption-sh";
|
|
||||||
runtimeInputs = [
|
|
||||||
pkgs.coreutils
|
|
||||||
pkgs.systemd
|
|
||||||
];
|
|
||||||
text = ''exec ${pkgs.runtimeShell} "$@"'';
|
|
||||||
};
|
|
||||||
in ''
|
|
||||||
substituteInPlace src/secret/virt-secret-init-encryption.service.in \
|
|
||||||
--replace-fail /usr/bin/sh ${lib.getExe script}
|
|
||||||
''
|
|
||||||
);
|
|
||||||
});
|
|
||||||
programs.virt-manager.enable = config.u.has.graphical && config.u.has.virt;
|
programs.virt-manager.enable = config.u.has.graphical && config.u.has.virt;
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
hardware.graphics.enable32Bit = config.u.has.graphical && config.u.has.wine;
|
hardware.graphics.enable32Bit = config.u.has.graphical && config.u.has.wine;
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,4 @@ lib.mkIf config.u.has.yubikey {
|
||||||
services.physlock.u2fAuth = false;
|
services.physlock.u2fAuth = false;
|
||||||
};
|
};
|
||||||
programs.yubikey-touch-detector.enable = true;
|
programs.yubikey-touch-detector.enable = true;
|
||||||
systemd.services."polkit-agent-helper@".serviceConfig = {
|
|
||||||
PrivateDevices = lib.mkForce false;
|
|
||||||
DeviceAllow = [
|
|
||||||
"/dev/urandom r"
|
|
||||||
"char-hidraw rw"
|
|
||||||
];
|
|
||||||
ProtectHome = lib.mkForce "read-only";
|
|
||||||
StandardError = "journal";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ lib.mkIf config.u.has.activitywatch {
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
activitywatch
|
activitywatch
|
||||||
python3Packages.aw-client
|
python312Packages.aw-client
|
||||||
python3Packages.aw-core
|
python312Packages.aw-core
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ lib.mkIf config.u.has.graphical {
|
||||||
"xdg-desktop-portal.service"
|
"xdg-desktop-portal.service"
|
||||||
"copyq.service"
|
"copyq.service"
|
||||||
"fcitx5.service"
|
"fcitx5.service"
|
||||||
"fastcompmgr.service"
|
"picom.service"
|
||||||
"safeeyes.service"
|
"safeeyes.service"
|
||||||
"snixembed.service"
|
"snixembed.service"
|
||||||
];
|
];
|
||||||
|
|
@ -26,7 +26,7 @@ lib.mkIf config.u.has.graphical {
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
copyq.Service.ExecStart = ["${pkgs.copyq}/bin/copyq"];
|
copyq.Service.ExecStart = ["${pkgs.copyq}/bin/copyq"];
|
||||||
fcitx5.Service.ExecStart = ["/run/current-system/sw/bin/fcitx5"];
|
fcitx5.Service.ExecStart = ["/run/current-system/sw/bin/fcitx5"];
|
||||||
fastcompmgr.Service.ExecStart = ["${pkgs.fastcompmgr}/bin/fastcompmgr"];
|
picom.Service.ExecStart = ["${pkgs.picom}/bin/picom"];
|
||||||
safeeyes.Service.ExecStart = ["${pkgs.safeeyes}/bin/safeeyes"];
|
safeeyes.Service.ExecStart = ["${pkgs.safeeyes}/bin/safeeyes"];
|
||||||
snixembed.Service.ExecStart = ["${pkgs.snixembed}/bin/snixembed"];
|
snixembed.Service.ExecStart = ["${pkgs.snixembed}/bin/snixembed"];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ mods = "Control|Shift"
|
||||||
|
|
||||||
[window]
|
[window]
|
||||||
dynamic_padding = true
|
dynamic_padding = true
|
||||||
opacity = 0.9
|
opacity = 0.8
|
||||||
|
|
||||||
[window.padding]
|
[window.padding]
|
||||||
x = 10
|
x = 10
|
||||||
|
|
|
||||||
|
|
@ -50,14 +50,22 @@ alias gap='git add -p'
|
||||||
alias gr='git reset'
|
alias gr='git reset'
|
||||||
alias lg='lazygit'
|
alias lg='lazygit'
|
||||||
|
|
||||||
|
# pacman aliases
|
||||||
|
if _exists pacman; then
|
||||||
|
alias p='pacman'
|
||||||
|
alias pq='pacman -Q | fzf'
|
||||||
|
alias aur='pacman -Qm'
|
||||||
|
alias qo='pacman -Qo'
|
||||||
|
alias ql='pacman -Ql'
|
||||||
|
alias qi='pacman -Qii'
|
||||||
|
fi
|
||||||
|
|
||||||
# for using aliases with sudo
|
# for using aliases with sudo
|
||||||
_exists doas && alias sudo='doas ' || alias sudo='sudo '
|
_exists doas && alias sudo='doas ' || alias sudo='sudo '
|
||||||
alias doas='doas '
|
alias doas='doas '
|
||||||
|
|
||||||
alias py='python'
|
alias py='python'
|
||||||
alias s='systemctl'
|
alias s='systemctl'
|
||||||
_completion_loader systemctl
|
|
||||||
complete -F _systemctl s
|
|
||||||
alias x='sx ~/.config/sx/sxrc'
|
alias x='sx ~/.config/sx/sxrc'
|
||||||
alias xo='xdg-open'
|
alias xo='xdg-open'
|
||||||
alias log='sudo journalctl -b'
|
alias log='sudo journalctl -b'
|
||||||
|
|
@ -67,9 +75,9 @@ alias path='sed "s/:/\n/g" <<< $PATH'
|
||||||
alias utc='date -u +"%Y-%m-%d %H:%M:%S UTC"'
|
alias utc='date -u +"%Y-%m-%d %H:%M:%S UTC"'
|
||||||
alias odd='objdump -d'
|
alias odd='objdump -d'
|
||||||
alias xco='xclip -o -sel clipboard'
|
alias xco='xclip -o -sel clipboard'
|
||||||
alias k1='kill %1'
|
|
||||||
alias pwninit='pwninit --template-path ~/.config/pwninit/template.py --template-bin-name e'
|
alias pwninit='pwninit --template-path ~/.config/pwninit/template.py --template-bin-name e'
|
||||||
alias fonts='fc-list | awk -F: "{ print \$2 }" | sort | uniq | fzf'
|
alias fonts='fc-list | awk -F: "{ print \$2 }" | sort | uniq | fzf'
|
||||||
|
alias hz='xrandr --output DisplayPort-1 --mode 1920x1080 --rate'
|
||||||
alias ns='nix-shell'
|
alias ns='nix-shell'
|
||||||
alias zn='cd ~/.local/nixos'
|
alias zn='cd ~/.local/nixos'
|
||||||
alias znh='cd ~/.local/nixos/hosts/$(hostname)'
|
alias znh='cd ~/.local/nixos/hosts/$(hostname)'
|
||||||
|
|
|
||||||
|
|
@ -25,18 +25,18 @@
|
||||||
nvim-colorizer-lua
|
nvim-colorizer-lua
|
||||||
lazydev-nvim
|
lazydev-nvim
|
||||||
Coqtail
|
Coqtail
|
||||||
plenary-nvim
|
neorg
|
||||||
typst-preview-nvim
|
|
||||||
(pkgs.vimUtils.buildVimPlugin {
|
(pkgs.vimUtils.buildVimPlugin {
|
||||||
pname = "undotree";
|
pname = "undotree";
|
||||||
version = "2026-1-25";
|
version = "2024-2-9";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "jiaoshijie";
|
owner = "jiaoshijie";
|
||||||
repo = "undotree";
|
repo = "undotree";
|
||||||
rev = "ac02e6055fc2b9a5d904e40eb3d943c8dc2cad01";
|
rev = "eab459ab87dd249617b5f7187bb69e614a083047";
|
||||||
sha256 = "sha256-Sb8tlFROVEuHgXgHViS8eFiWZzjVh2ZNzyZuQdFFkq0=";
|
sha256 = "sha256-FIYDyfkaIS9C16ClWKLMdpSPv/OrcOalVVsyFJBU2eI=";
|
||||||
};
|
};
|
||||||
meta.homepage = "https://github.com/jiaoshijie/undotree";
|
meta.homepage = "https://github.com/jiaoshijie/undotree";
|
||||||
|
buildInputs = [plenary-nvim];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
|
@ -46,7 +46,6 @@
|
||||||
nixd
|
nixd
|
||||||
lua-language-server
|
lua-language-server
|
||||||
zls
|
zls
|
||||||
tinymist
|
|
||||||
];
|
];
|
||||||
withRuby = false;
|
withRuby = false;
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,7 @@ map('n', '<leader>h', '<cmd>sp<cr>', {desc = "split [H]orizontal"})
|
||||||
map('n', 'q:', '<nop>')
|
map('n', 'q:', '<nop>')
|
||||||
map('n', '<leader>cd', vim.diagnostic.open_float, {desc = "[C]ode [D]iagnostic"})
|
map('n', '<leader>cd', vim.diagnostic.open_float, {desc = "[C]ode [D]iagnostic"})
|
||||||
map('n', 'x', '"_x')
|
map('n', 'x', '"_x')
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('FileType', {
|
|
||||||
pattern = { 'coq' },
|
|
||||||
callback = function ()
|
|
||||||
map('n', '<down>', '<cmd>CoqNext<cr>')
|
map('n', '<down>', '<cmd>CoqNext<cr>')
|
||||||
map('n', '<up>', '<cmd>CoqUndo<cr>')
|
map('n', '<up>', '<cmd>CoqUndo<cr>')
|
||||||
map('i', '<c-a-j>', '<cmd>CoqNext<cr>')
|
map('i', '<c-a-j>', '<cmd>CoqNext<cr>')
|
||||||
map('i', '<c-a-k>', '<cmd>CoqUndo<cr>')
|
map('i', '<c-a-k>', '<cmd>CoqUndo<cr>')
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,7 @@ require('gitsigns').setup({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('FileType', {
|
require('nvim-treesitter.configs').setup({ highlight = { enable = true } })
|
||||||
pattern = { 'python' },
|
|
||||||
callback = function() vim.treesitter.start() end,
|
|
||||||
})
|
|
||||||
|
|
||||||
require('mini.files').setup({
|
require('mini.files').setup({
|
||||||
windows = { preview = true }
|
windows = { preview = true }
|
||||||
|
|
@ -53,3 +50,11 @@ require('undotree').setup({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
require('lazydev').setup()
|
require('lazydev').setup()
|
||||||
|
|
||||||
|
require('neorg').setup({
|
||||||
|
lazy_loading = true,
|
||||||
|
load = {
|
||||||
|
["core.defaults"] = {},
|
||||||
|
["core.concealer"] = {},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@ vim.lsp.enable("pyright")
|
||||||
vim.lsp.enable("nixd")
|
vim.lsp.enable("nixd")
|
||||||
vim.lsp.enable("lua_ls")
|
vim.lsp.enable("lua_ls")
|
||||||
vim.lsp.enable("zls")
|
vim.lsp.enable("zls")
|
||||||
vim.lsp.enable("tinymist")
|
|
||||||
|
|
||||||
vim.lsp.config("clangd",{
|
vim.lsp.config("clangd",{
|
||||||
cmd = {
|
cmd = {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@
|
||||||
xclip
|
xclip
|
||||||
copyq
|
copyq
|
||||||
picom
|
picom
|
||||||
fastcompmgr
|
|
||||||
obs-studio
|
obs-studio
|
||||||
screenkey
|
screenkey
|
||||||
safeeyes
|
safeeyes
|
||||||
|
|
@ -61,12 +60,12 @@
|
||||||
(config.u.lib.localHome vesktop "vesktop" "bin/vesktop")
|
(config.u.lib.localHome vesktop "vesktop" "bin/vesktop")
|
||||||
]
|
]
|
||||||
++ lib.optionals config.u.has.wine [
|
++ lib.optionals config.u.has.wine [
|
||||||
wineWow64Packages.stable
|
wineWowPackages.stable
|
||||||
winetricks
|
winetricks
|
||||||
]
|
]
|
||||||
++ lib.optionals config.u.has.jp [
|
++ lib.optionals config.u.has.jp [
|
||||||
anki
|
anki
|
||||||
ki
|
ki
|
||||||
python3Packages.manga-ocr
|
python312Packages.manga-ocr
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
lib.mkIf config.u.has.prog {
|
lib.mkIf config.u.has.prog {
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[
|
[
|
||||||
(python3.withPackages (python-pkgs: [
|
(python312.withPackages (python-pkgs: [
|
||||||
python-pkgs.pwntools
|
python-pkgs.pwntools
|
||||||
python-pkgs.requests
|
python-pkgs.requests
|
||||||
python-pkgs.pyjwt
|
python-pkgs.pyjwt
|
||||||
|
|
@ -25,7 +25,6 @@ lib.mkIf config.u.has.prog {
|
||||||
pyp
|
pyp
|
||||||
coq_8_20
|
coq_8_20
|
||||||
zig
|
zig
|
||||||
typst
|
|
||||||
]
|
]
|
||||||
++ lib.optionals config.u.has.graphical [
|
++ lib.optionals config.u.has.graphical [
|
||||||
(cutter.withPlugins (ps: with ps; [jsdec rz-ghidra sigdb]))
|
(cutter.withPlugins (ps: with ps; [jsdec rz-ghidra sigdb]))
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,6 @@
|
||||||
text = "";
|
text = "";
|
||||||
force = true;
|
force = true;
|
||||||
};
|
};
|
||||||
xdg.dataFile."kactivitymanagerd" = {
|
|
||||||
text = "";
|
|
||||||
force = true;
|
|
||||||
};
|
|
||||||
xdg.dataFile."kwalletd".source = ./kwalletd;
|
xdg.dataFile."kwalletd".source = ./kwalletd;
|
||||||
xdg.dataFile."rem.cmd".source = config.u.lib.lnn "user/share/rem.cmd";
|
xdg.dataFile."rem.cmd".source = config.u.lib.lnn "user/share/rem.cmd";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue