Compare commits
22 Commits
nftables_t
...
7e3dbe0a70
| Author | SHA1 | Date | |
|---|---|---|---|
|
7e3dbe0a70
|
|||
|
6e32ea5dee
|
|||
|
e6e1ed7618
|
|||
|
9b73aabd3c
|
|||
|
3380128587
|
|||
|
a64d8bfdc9
|
|||
|
b86aa2cd0c
|
|||
|
266a5ef3f2
|
|||
|
250eb6f2e2
|
|||
|
bc722d1df4
|
|||
|
431d1659a4
|
|||
|
a50ae21c82
|
|||
|
e0af8b8607
|
|||
|
a9a8fd5554
|
|||
|
101f58720c
|
|||
|
79289167b1
|
|||
|
95da63a217
|
|||
|
460f49e4b3
|
|||
|
65911327f3
|
|||
|
edec22570d
|
|||
|
62e54fdadf
|
|||
|
f5a1f5d396
|
110
flake.lock
generated
110
flake.lock
generated
@@ -33,22 +33,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_2": {
|
"flake-compat_2": {
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1673956053,
|
|
||||||
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat_3": {
|
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696426674,
|
"lastModified": 1696426674,
|
||||||
@@ -64,24 +48,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681202837,
|
|
||||||
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -89,16 +55,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736373539,
|
"lastModified": 1747556831,
|
||||||
"narHash": "sha256-dinzAqCjenWDxuy+MqUQq0I4zUSfaCvN9rzuCmgMZJY=",
|
"narHash": "sha256-Qb84nbYFFk0DzFeqVoHltS2RodAYY5/HZQKE8WnBDsc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "bd65bc3cde04c16755955630b344bc9e35272c56",
|
"rev": "d0bbd221482c2713cccb80220f3c9d16a6e20a33",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-24.11",
|
"ref": "release-25.05",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -126,16 +92,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738574474,
|
"lastModified": 1747953325,
|
||||||
"narHash": "sha256-rvyfF49e/k6vkrRTV4ILrWd92W+nmBDfRYZgctOyolQ=",
|
"narHash": "sha256-y2ZtlIlNTuVJUZCqzZAhIw5rrKP4DOSklev6c8PyCkQ=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fecfeb86328381268e29e998ddd3ebc70bbd7f7c",
|
"rev": "55d1f923c480dadce40f5231feb472e81b0bab48",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-24.11",
|
"ref": "nixos-25.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -162,11 +128,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736528609,
|
"lastModified": 1748077877,
|
||||||
"narHash": "sha256-p0tYmTVnnFghamXEXD4w/lldCi604zIWDV4Ol9ubQ5g=",
|
"narHash": "sha256-sxWrjcRygvs7Fz9gxjSm54ul8+NtU29V+PLAPR6ZfY0=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "8245a48cc75cc74dea1b3ca89cb58f24f8e14f85",
|
"rev": "b23265403c87af272c74cda484a840b0f22306f5",
|
||||||
"revCount": 42,
|
"revCount": 43,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.project-cloud.net/asmir/nvim_flake"
|
"url": "https://git.project-cloud.net/asmir/nvim_flake"
|
||||||
},
|
},
|
||||||
@@ -175,28 +141,6 @@
|
|||||||
"url": "https://git.project-cloud.net/asmir/nvim_flake"
|
"url": "https://git.project-cloud.net/asmir/nvim_flake"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"peerix": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat_2",
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1684706914,
|
|
||||||
"narHash": "sha256-pBlTtsC28e/5MUTe4NWeNNOc/4Kf6EzGQGppQEQ/ioo=",
|
|
||||||
"owner": "asmir.abdulahovic",
|
|
||||||
"repo": "peerix",
|
|
||||||
"rev": "8fdbbd0039240e05b4f93bbd5b454d5643e8a8d1",
|
|
||||||
"type": "gitlab"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "asmir.abdulahovic",
|
|
||||||
"repo": "peerix",
|
|
||||||
"type": "gitlab"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"project-cloud": {
|
"project-cloud": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -225,7 +169,6 @@
|
|||||||
"nix-xilinx": "nix-xilinx",
|
"nix-xilinx": "nix-xilinx",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nvim": "nvim",
|
"nvim": "nvim",
|
||||||
"peerix": "peerix",
|
|
||||||
"project-cloud": "project-cloud",
|
"project-cloud": "project-cloud",
|
||||||
"simple-nixos-mailserver": "simple-nixos-mailserver",
|
"simple-nixos-mailserver": "simple-nixos-mailserver",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
@@ -236,18 +179,18 @@
|
|||||||
"simple-nixos-mailserver": {
|
"simple-nixos-mailserver": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"blobs": "blobs",
|
"blobs": "blobs",
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nixpkgs-24_11": "nixpkgs-24_11"
|
"nixpkgs-24_11": "nixpkgs-24_11"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737736848,
|
"lastModified": 1746937334,
|
||||||
"narHash": "sha256-VrUfCXBXYV+YmQ2OvVTeML9EnmaPRtH+POrNIcJp6yo=",
|
"narHash": "sha256-7g2GSePdYbpD1v5BxEVSCJ2Ogf4K5rc9sBB81FervUY=",
|
||||||
"owner": "simple-nixos-mailserver",
|
"owner": "simple-nixos-mailserver",
|
||||||
"repo": "nixos-mailserver",
|
"repo": "nixos-mailserver",
|
||||||
"rev": "6b425d13f5a9d73cb63973d3609acacef4d1e261",
|
"rev": "da66510f688b7eac54e3cac7c75be4b8dd78ce8b",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -263,11 +206,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738291974,
|
"lastModified": 1746485181,
|
||||||
"narHash": "sha256-wkwYJc8cKmmQWUloyS9KwttBnja2ONRuJQDEsmef320=",
|
"narHash": "sha256-PxrrSFLaC7YuItShxmYbMgSuFFuwxBB+qsl9BZUnRvg=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "4c1251904d8a08c86ac6bc0d72cc09975e89aef7",
|
"rev": "e93ee1d900ad264d65e9701a5c6f895683433386",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -296,21 +239,6 @@
|
|||||||
"url": "https://git.project-cloud.net/asmir/swaysw"
|
"url": "https://git.project-cloud.net/asmir/swaysw"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"theme_anemone": {
|
"theme_anemone": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|||||||
34
flake.nix
34
flake.nix
@@ -2,18 +2,13 @@
|
|||||||
description = "NixOS configuration";
|
description = "NixOS configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||||
|
|
||||||
nix-xilinx = {
|
nix-xilinx = {
|
||||||
url = "gitlab:asmir.abdulahovic/nix-xilinx";
|
url = "gitlab:asmir.abdulahovic/nix-xilinx";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
peerix = {
|
|
||||||
url = "gitlab:asmir.abdulahovic/peerix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
zremap = {
|
zremap = {
|
||||||
url = "git+https://git.project-cloud.net/asmir/zremap";
|
url = "git+https://git.project-cloud.net/asmir/zremap";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -35,7 +30,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-24.11";
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -56,7 +51,6 @@
|
|||||||
nixpkgs,
|
nixpkgs,
|
||||||
nix-xilinx,
|
nix-xilinx,
|
||||||
nvim,
|
nvim,
|
||||||
peerix,
|
|
||||||
project-cloud,
|
project-cloud,
|
||||||
simple-nixos-mailserver,
|
simple-nixos-mailserver,
|
||||||
sops-nix,
|
sops-nix,
|
||||||
@@ -88,18 +82,6 @@
|
|||||||
home-manager.extraSpecialArgs = { inherit inputs system; };
|
home-manager.extraSpecialArgs = { inherit inputs system; };
|
||||||
home-manager.backupFileExtension = "home_backup";
|
home-manager.backupFileExtension = "home_backup";
|
||||||
}
|
}
|
||||||
peerix.nixosModules.peerix
|
|
||||||
{
|
|
||||||
services.peerix = {
|
|
||||||
enable = true;
|
|
||||||
globalCacheTTL = 10;
|
|
||||||
package = peerix.packages.x86_64-linux.peerix;
|
|
||||||
openFirewall = true; # UDP/12304
|
|
||||||
privateKeyFile = nixy.config.sops.secrets."peerix/private".path;
|
|
||||||
publicKeyFile = ./nixy/peerix-public;
|
|
||||||
publicKey = "peerix-mediabox:UDgG3xdQYv7bmx2l4ZPNRPJtp2zMmY++H/fnGeJ9BQw=";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -122,18 +104,6 @@
|
|||||||
home-manager.users.akill = import ./home/home.nix;
|
home-manager.users.akill = import ./home/home.nix;
|
||||||
home-manager.extraSpecialArgs = { inherit inputs system; };
|
home-manager.extraSpecialArgs = { inherit inputs system; };
|
||||||
}
|
}
|
||||||
peerix.nixosModules.peerix
|
|
||||||
{
|
|
||||||
services.peerix = {
|
|
||||||
enable = true;
|
|
||||||
globalCacheTTL = 10;
|
|
||||||
package = peerix.packages.x86_64-linux.peerix;
|
|
||||||
openFirewall = true; # UDP/12304
|
|
||||||
privateKeyFile = mediabox.config.sops.secrets."peerix/private".path;
|
|
||||||
publicKeyFile = ./mediabox/peerix-public;
|
|
||||||
publicKey = "peerix-nixy:8THqS0R2zWF/47ai0RFmqJnieYTZ1jaWOD9tnzpvA6s=";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,9 @@ in
|
|||||||
hwdec = "auto";
|
hwdec = "auto";
|
||||||
vo = "gpu-next";
|
vo = "gpu-next";
|
||||||
ao = "pipewire";
|
ao = "pipewire";
|
||||||
script-opts-set = "ytdl_hook-ytdl_path=yt-dlp,sponsorblock-local_database=no,sponsorblock-skip_categories=[sponsor,intro,selfpromo]";
|
osd-bar = "no";
|
||||||
|
border = "no";
|
||||||
|
script-opts-set = "";
|
||||||
ytdl-format = "bestvideo[height<=?1080]+bestaudio/best";
|
ytdl-format = "bestvideo[height<=?1080]+bestaudio/best";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -160,7 +162,6 @@ in
|
|||||||
|
|
||||||
qutebrowser = {
|
qutebrowser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = qutebrowser_firejail;
|
|
||||||
keyBindings = {
|
keyBindings = {
|
||||||
normal = {
|
normal = {
|
||||||
"j" = "scroll-px 0 25";
|
"j" = "scroll-px 0 25";
|
||||||
@@ -251,13 +252,26 @@ in
|
|||||||
swayidle =
|
swayidle =
|
||||||
let
|
let
|
||||||
locker = pkgs.writeShellScriptBin "swaylock_fancy" ''
|
locker = pkgs.writeShellScriptBin "swaylock_fancy" ''
|
||||||
TMP_FILE=$(${pkgs.coreutils}/bin/mktemp /tmp/.swaylock_ss_XXXXXX.jpg)
|
ALL_IMGS=""
|
||||||
${lib.getExe pkgs.grim} -t ppm - | ${pkgs.imagemagick}/bin/convert - -blur 0x12 "$TMP_FILE"
|
LOCK_ARGS=""
|
||||||
${lib.getExe pkgs.swaylock} -f -i "$TMP_FILE"
|
for OUTPUT in $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${lib.getExe pkgs.jq} -r '.[].name')
|
||||||
${pkgs.coreutils}/bin/shred "$TMP_FILE"
|
do
|
||||||
${pkgs.coreutils}/bin/rm "$TMP_FILE"
|
TMP_FILE=$(${pkgs.coreutils}/bin/mktemp /tmp/.swaylock_ss_XXXXXX.jpg)
|
||||||
|
${lib.getExe pkgs.grim} -t ppm -o $OUTPUT - | \
|
||||||
|
${lib.getExe pkgs.ffmpeg} -y -loglevel 0 -i - -vframes 1 -vf "boxblur=10" "$TMP_FILE"
|
||||||
|
LOCK_ARGS="$LOCK_ARGS --image $OUTPUT:$TMP_FILE"
|
||||||
|
ALL_IMGS="$ALL_IMGS $TMP_FILE"
|
||||||
|
done
|
||||||
|
${lib.getExe pkgs.swaylock} -f $LOCK_ARGS
|
||||||
|
${pkgs.coreutils}/bin/shred $ALL_IMGS
|
||||||
|
${pkgs.coreutils}/bin/rm $ALL_IMGS
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
/*
|
||||||
|
refresh_i3status = pkgs.writeShellScriptBin "refresh_i3status" ''
|
||||||
|
${pkgs.coreutils}/bin/sleep 1 && ${pkgs.procps}/bin/pkill -USR1 i3status-rs
|
||||||
|
'';
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
events = [
|
events = [
|
||||||
@@ -269,10 +283,12 @@ in
|
|||||||
event = "lock";
|
event = "lock";
|
||||||
command = "${locker}/bin/swaylock_fancy";
|
command = "${locker}/bin/swaylock_fancy";
|
||||||
}
|
}
|
||||||
{
|
/*
|
||||||
event = "after-resume";
|
{
|
||||||
command = "${pkgs.procps}/bin/pkill -USR1 i3status-rs";
|
event = "after-resume";
|
||||||
}
|
command = "${refresh_i3status}/bin/refresh_i3status";
|
||||||
|
}
|
||||||
|
*/
|
||||||
];
|
];
|
||||||
timeouts = [
|
timeouts = [
|
||||||
{
|
{
|
||||||
@@ -299,17 +315,17 @@ in
|
|||||||
profile.outputs = [
|
profile.outputs = [
|
||||||
{
|
{
|
||||||
criteria = "eDP-1";
|
criteria = "eDP-1";
|
||||||
position = "3840,0";
|
position = "0,0";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026536";
|
criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026536";
|
||||||
mode = "1920x1080@74.973Hz";
|
mode = "1920x1080@74.973Hz";
|
||||||
position = "5760,0";
|
position = "1920,0";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026535";
|
criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026535";
|
||||||
mode = "1920x1080@74.973Hz";
|
mode = "1920x1080@74.973Hz";
|
||||||
position = "7680,0";
|
position = "3840,0";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,11 @@ let
|
|||||||
chromium_stackfield = pkgs.writeShellScriptBin "chromium_stackfield" ''
|
chromium_stackfield = pkgs.writeShellScriptBin "chromium_stackfield" ''
|
||||||
${lib.getExe pkgs.ungoogled-chromium} --socket=wayland org.chromium.Chromium --app=https://stackfield.com/
|
${lib.getExe pkgs.ungoogled-chromium} --socket=wayland org.chromium.Chromium --app=https://stackfield.com/
|
||||||
'';
|
'';
|
||||||
|
nixy_switch = pkgs.writeShellScriptBin "nixy_switch" ''
|
||||||
|
${pkgs.util-linux}/bin/ionice -c 3 -- \
|
||||||
|
${pkgs.coreutils}/bin/nice -n 20 -- \
|
||||||
|
${lib.getExe pkgs.nixos-rebuild} --flake ./#nixy switch
|
||||||
|
'';
|
||||||
qcad = pkgs.writeShellScriptBin "qcad" ''
|
qcad = pkgs.writeShellScriptBin "qcad" ''
|
||||||
QT_QPA_PLATFORM=xcb ${lib.getExe pkgs.qcad} $@
|
QT_QPA_PLATFORM=xcb ${lib.getExe pkgs.qcad} $@
|
||||||
'';
|
'';
|
||||||
@@ -58,9 +63,10 @@ in
|
|||||||
cached-nix-shell
|
cached-nix-shell
|
||||||
caddy
|
caddy
|
||||||
cargo
|
cargo
|
||||||
ungoogled-chromium
|
|
||||||
cmake
|
cmake
|
||||||
compsize
|
compsize
|
||||||
|
kdePackages.ark
|
||||||
|
ungoogled-chromium
|
||||||
# cura
|
# cura
|
||||||
deluge
|
deluge
|
||||||
dfu-util
|
dfu-util
|
||||||
@@ -86,7 +92,7 @@ in
|
|||||||
imv
|
imv
|
||||||
inkscape
|
inkscape
|
||||||
jellyfin-media-player
|
jellyfin-media-player
|
||||||
kdenlive
|
kdePackages.kdenlive
|
||||||
kicad
|
kicad
|
||||||
kodi-wayland
|
kodi-wayland
|
||||||
krita
|
krita
|
||||||
@@ -130,7 +136,6 @@ in
|
|||||||
screen
|
screen
|
||||||
seer
|
seer
|
||||||
sioyek
|
sioyek
|
||||||
skypeforlinux
|
|
||||||
slurp
|
slurp
|
||||||
steam-run
|
steam-run
|
||||||
stm32cubemx
|
stm32cubemx
|
||||||
@@ -143,6 +148,7 @@ in
|
|||||||
thunderbird
|
thunderbird
|
||||||
typst
|
typst
|
||||||
upx
|
upx
|
||||||
|
viber
|
||||||
waybar
|
waybar
|
||||||
wdisplays
|
wdisplays
|
||||||
weechat
|
weechat
|
||||||
@@ -165,13 +171,13 @@ in
|
|||||||
chromium_discord
|
chromium_discord
|
||||||
chromium_stackfield
|
chromium_stackfield
|
||||||
chromium_teams
|
chromium_teams
|
||||||
|
nixy_switch
|
||||||
|
qcad
|
||||||
ssh_proxy
|
ssh_proxy
|
||||||
wrap_sh
|
wrap_sh
|
||||||
qcad
|
|
||||||
]
|
]
|
||||||
++ [
|
++ [
|
||||||
inputs.swaysw.packages.${system}.swaysw
|
inputs.swaysw.packages.${system}.swaysw
|
||||||
(pkgs.callPackage ../packages/viber/default.nix { })
|
|
||||||
(pkgs.callPackage ../packages/bubblewrap/default.nix { })
|
(pkgs.callPackage ../packages/bubblewrap/default.nix { })
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,14 @@
|
|||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
kbd_switch = pkgs.writeShellScriptBin "kbd_switch" ''
|
||||||
|
declare -A -r KBD_CYCLE_MAP=(
|
||||||
|
["English (US)"]="de"
|
||||||
|
["German"]="ba"
|
||||||
|
)
|
||||||
|
LAYOUT="$(${pkgs.sway}/bin/swaymsg -t get_inputs -r | ${pkgs.jq}/bin/jq -r 'map(select(.type == "keyboard")).[0].xkb_layout_names.[]')"
|
||||||
|
swaymsg input "*" xkb_layout ''${KBD_CYCLE_MAP["$LAYOUT"]:-"us"}
|
||||||
|
'';
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.i3status-rust = {
|
programs.i3status-rust = {
|
||||||
bars.top = {
|
bars.top = {
|
||||||
@@ -12,6 +22,16 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
blocks = [
|
blocks = [
|
||||||
|
{
|
||||||
|
block = "keyboard_layout";
|
||||||
|
driver = "sway";
|
||||||
|
click = [
|
||||||
|
{
|
||||||
|
cmd = "${kbd_switch}/bin/kbd_switch";
|
||||||
|
button = "left";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
{
|
{
|
||||||
block = "battery";
|
block = "battery";
|
||||||
interval = 10;
|
interval = 10;
|
||||||
@@ -36,20 +56,30 @@
|
|||||||
{
|
{
|
||||||
block = "net";
|
block = "net";
|
||||||
device = "wlan0";
|
device = "wlan0";
|
||||||
|
if_command = "ip link show wlan0";
|
||||||
interval = 2;
|
interval = 2;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
block = "net";
|
block = "net";
|
||||||
device = "enp5s0";
|
device = "enp5s0";
|
||||||
|
if_command = "ip link show enp5s0";
|
||||||
interval = 2;
|
interval = 2;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
block = "net";
|
block = "net";
|
||||||
device = "enp7s0f3u1u1";
|
device = "enp7s0f3u1u1";
|
||||||
|
if_command = "ip link show enp7s0f3u1u1";
|
||||||
interval = 2;
|
interval = 2;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
block = "net";
|
block = "net";
|
||||||
|
device = "enp7s0f4u1u1";
|
||||||
|
if_command = "ip link show enp7s0f4u1u1";
|
||||||
|
interval = 2;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
block = "net";
|
||||||
|
if_command = "ip link show eno1";
|
||||||
device = "eno1";
|
device = "eno1";
|
||||||
interval = 2;
|
interval = 2;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ let
|
|||||||
${lib.getExe pkgs.grim} -g "$GEOM" - | ${pkgs.wl-clipboard}/bin/wl-copy
|
${lib.getExe pkgs.grim} -g "$GEOM" - | ${pkgs.wl-clipboard}/bin/wl-copy
|
||||||
'';
|
'';
|
||||||
swaysw = inputs.swaysw.packages.${system}.swaysw;
|
swaysw = inputs.swaysw.packages.${system}.swaysw;
|
||||||
viber = pkgs.callPackage ../packages/viber/default.nix { };
|
|
||||||
term = "${pkgs.foot}/bin/footclient";
|
term = "${pkgs.foot}/bin/footclient";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -146,7 +145,7 @@ in
|
|||||||
"Mod4+j" =
|
"Mod4+j" =
|
||||||
"exec ${pkgs.sway}/bin/swaymsg [app_id=com.rtosta.zapzap] scratchpad show || exec ${lib.getExe pkgs.zapzap}";
|
"exec ${pkgs.sway}/bin/swaymsg [app_id=com.rtosta.zapzap] scratchpad show || exec ${lib.getExe pkgs.zapzap}";
|
||||||
"Mod4+h" =
|
"Mod4+h" =
|
||||||
"exec ${pkgs.sway}/bin/swaymsg [app_id=com.viber] scratchpad show || exec ${viber}/bin/viber";
|
"exec ${pkgs.sway}/bin/swaymsg [app_id=com.viber] scratchpad show || exec ${pkgs.viber}/bin/viber";
|
||||||
"Mod4+y" =
|
"Mod4+y" =
|
||||||
''exec ${pkgs.sway}/bin/swaymsg [app_id="pulsemixer"] scratchpad show || exec ${term} -a pulsemixer ${lib.getExe pkgs.pulsemixer}'';
|
''exec ${pkgs.sway}/bin/swaymsg [app_id="pulsemixer"] scratchpad show || exec ${term} -a pulsemixer ${lib.getExe pkgs.pulsemixer}'';
|
||||||
"Mod4+p" = "exec ${lib.getExe pkgs.tessen} -a copy";
|
"Mod4+p" = "exec ${lib.getExe pkgs.tessen} -a copy";
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
envExtra = '''';
|
envExtra = '''';
|
||||||
|
|
||||||
initExtra = ''
|
initContent = ''
|
||||||
# binds
|
# binds
|
||||||
bindkey '^K' fzf-file-widget
|
bindkey '^K' fzf-file-widget
|
||||||
|
|
||||||
|
|||||||
@@ -333,8 +333,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "magpie";
|
networking.hostName = "magpie";
|
||||||
|
networking.nftables.enable = true;
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
nftables.enable = true;
|
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
@@ -366,13 +366,13 @@
|
|||||||
|
|
||||||
# This allows the wireguard server to route your traffic to the internet and hence be like a VPN
|
# This allows the wireguard server to route your traffic to the internet and hence be like a VPN
|
||||||
# For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients
|
# For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients
|
||||||
postSetup = ''
|
#postSetup = ''
|
||||||
${pkgs.nftables}/bin/nft add rule ip nat POSTROUTING oifname "eth0" ip saddr 10.100.0.0/24 counter masquerade
|
# ${pkgs.nftables}/bin/nft add rule ip nat POSTROUTING oifname "eth0" ip saddr 10.100.0.0/24 counter masquerade
|
||||||
'';
|
#'';
|
||||||
# This undoes the above command, TODO fix command below to be more specific
|
# This undoes the above command, TODO fix command below to be more specific
|
||||||
postShutdown = ''
|
#postShutdown = ''
|
||||||
${pkgs.nftables}/bin/nft flush table ip nat
|
# ${pkgs.nftables}/bin/nft flush table ip nat
|
||||||
'';
|
#'';
|
||||||
privateKeyFile = config.sops.secrets."wg_privkey".path;
|
privateKeyFile = config.sops.secrets."wg_privkey".path;
|
||||||
|
|
||||||
peers = [
|
peers = [
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
{
|
{ config
|
||||||
config,
|
, nix-xilinx
|
||||||
nix-xilinx,
|
, nvim
|
||||||
nvim,
|
, pkgs
|
||||||
pkgs,
|
, system
|
||||||
system,
|
, zremap
|
||||||
zremap,
|
, ...
|
||||||
...
|
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
USER = "akill";
|
USER = "akill";
|
||||||
@@ -16,7 +15,7 @@ in
|
|||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
system.autoUpgrade.enable = false;
|
system.autoUpgrade.enable = false;
|
||||||
system.switch = {
|
system.switch = {
|
||||||
enable = false;
|
enable = true;
|
||||||
enableNg = true;
|
enableNg = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -88,7 +87,7 @@ in
|
|||||||
"psmouse.synaptics_intertouch=0"
|
"psmouse.synaptics_intertouch=0"
|
||||||
"mem_sleep_default=deep"
|
"mem_sleep_default=deep"
|
||||||
];
|
];
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
#kernelPackages = pkgs.linuxPackages_latest;
|
||||||
kernel.sysctl = {
|
kernel.sysctl = {
|
||||||
"net.core.default_qdisc" = "fq";
|
"net.core.default_qdisc" = "fq";
|
||||||
"net.ipv4.tcp_congestion_control" = "bbr";
|
"net.ipv4.tcp_congestion_control" = "bbr";
|
||||||
@@ -236,6 +235,13 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
binfmt = true;
|
binfmt = true;
|
||||||
};
|
};
|
||||||
|
nix-ld = {
|
||||||
|
enable = false;
|
||||||
|
libraries = with pkgs; [
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
};
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
firejail.enable = true;
|
firejail.enable = true;
|
||||||
adb.enable = true;
|
adb.enable = true;
|
||||||
@@ -248,6 +254,14 @@ in
|
|||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
systemd = {
|
systemd = {
|
||||||
services = {
|
services = {
|
||||||
|
|
||||||
|
# Fix issue where systemd-vconsole-setup failes to find keymap
|
||||||
|
systemd-vconsole-setup = {
|
||||||
|
unitConfig = {
|
||||||
|
After = "local-fs.target";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
"zremap@" = {
|
"zremap@" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
@@ -372,6 +386,7 @@ in
|
|||||||
acpid.enable = true;
|
acpid.enable = true;
|
||||||
dbus.enable = true;
|
dbus.enable = true;
|
||||||
dbus.implementation = "broker";
|
dbus.implementation = "broker";
|
||||||
|
envfs.enable = true;
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
fwupd.enable = true;
|
fwupd.enable = true;
|
||||||
ntp.enable = true;
|
ntp.enable = true;
|
||||||
@@ -438,9 +453,9 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
bindings = [
|
bindings = [
|
||||||
{
|
{
|
||||||
keys = [ 113 ];
|
keys = [ 115 ];
|
||||||
events = [ "key" ];
|
events = [ "key" ];
|
||||||
command = "/run/current-system/sw/bin/runuser -l ${USER} -c 'amixer -q set Master toggle'";
|
command = "XDG_RUNTIME_DIR=/run/user/$(id -u ${USER}) ${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -449,16 +464,16 @@ in
|
|||||||
"key"
|
"key"
|
||||||
"rep"
|
"rep"
|
||||||
];
|
];
|
||||||
command = "/run/current-system/sw/bin/runuser -l ${USER} -c 'amixer -q set Master 5%- unmute'";
|
command = "XDG_RUNTIME_DIR=/run/user/$(id -u ${USER}) ${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
keys = [ 115 ];
|
keys = [ 113 ];
|
||||||
events = [
|
events = [
|
||||||
"key"
|
"key"
|
||||||
"rep"
|
"rep"
|
||||||
];
|
];
|
||||||
command = "/run/current-system/sw/bin/runuser -l ${USER} -c 'amixer -q set Master 5%+ unmute'";
|
command = "XDG_RUNTIME_DIR=/run/user/$(id -u ${USER}) ${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -591,6 +606,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
waydroid.enable = false;
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedBridges = [
|
allowedBridges = [
|
||||||
|
|||||||
Reference in New Issue
Block a user