Compare commits
18 Commits
2258d2abda
...
oddzielne_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
773bcf8c03 | ||
|
|
bff6ccf55c | ||
|
|
af67c443ad | ||
|
|
c3cadbcb29 | ||
|
|
973dcd58a7 | ||
|
|
7cd4ab4e3d | ||
|
|
da6e9496a3 | ||
|
|
d10f1b6191 | ||
|
|
3c99fff890 | ||
| b1a56e9614 | |||
|
|
72858a9a87 | ||
|
|
8026ce5f17 | ||
|
|
2a3a42a087 | ||
|
|
793174f97d | ||
|
|
80440f91e7 | ||
| 46f52843ca | |||
|
|
56cc9d6626 | ||
|
|
a51f8e78cf |
83
.vscode/bookmarks.code-snippets
vendored
Normal file
83
.vscode/bookmarks.code-snippets
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
// Place your zaneyos workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
|
||||
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
|
||||
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
|
||||
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
|
||||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
|
||||
// Placeholders with the same ids are connected.
|
||||
// Example:
|
||||
// "Print to console": {
|
||||
// "scope": "javascript,typescript",
|
||||
// "prefix": "log",
|
||||
// "body": [
|
||||
// "console.log('$1');",
|
||||
// "$2"
|
||||
// ],
|
||||
// "description": "Log output to console"
|
||||
// }
|
||||
"bm-link": {
|
||||
"scope": "nix",
|
||||
"prefix": "bm-link",
|
||||
"body": [
|
||||
"{",
|
||||
" name = \"\";",
|
||||
" tags = [];",
|
||||
" keyword = \"@\";",
|
||||
" url = \"\";",
|
||||
"}"
|
||||
],
|
||||
"description": "Home-manager Bookmark link"
|
||||
},
|
||||
"bm-folder": {
|
||||
"scope": "nix",
|
||||
"prefix": "bm-folder",
|
||||
"body": [
|
||||
"{",
|
||||
" name = \"\";",
|
||||
" toolbar = true;",
|
||||
" bookmarks = [];",
|
||||
"}"
|
||||
],
|
||||
"description": "Home-manager Bookmark folder"
|
||||
},
|
||||
"search-engine": {
|
||||
"scope": "nix",
|
||||
"prefix": "search-engine",
|
||||
"description": "Home-manager Search engine",
|
||||
"body": [
|
||||
"\"\" = {",
|
||||
" definedAliases = [];",
|
||||
" icon = \"\";",
|
||||
" urls = [",
|
||||
" {",
|
||||
" template = \"\";",
|
||||
" params = [",
|
||||
" {",
|
||||
" name = \"\";",
|
||||
" value = \"{searchTerms}\";",
|
||||
" }",
|
||||
" ];",
|
||||
" }",
|
||||
" ];",
|
||||
"};"
|
||||
]
|
||||
},
|
||||
"nix-config": {
|
||||
"scope": "nix",
|
||||
"prefix": "nix-config",
|
||||
"description": "Config do pliku .nix",
|
||||
"body": [
|
||||
"{pkgs, ...}: {}"
|
||||
]
|
||||
},
|
||||
"nix-config=nixpkgs": {
|
||||
"scope": "nix",
|
||||
"prefix": "nix-config-nixpkgs",
|
||||
"description": "Config do pliku .nix z nixpkgs",
|
||||
"body": [
|
||||
"{pkgs, ... }: {",
|
||||
" environment.systemPackages = with pkgs; [];",
|
||||
"}",
|
||||
]
|
||||
}
|
||||
}
|
||||
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@@ -18,5 +18,10 @@
|
||||
},
|
||||
"editor.formatOnPaste": true,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "jnoortheen.nix-ide"
|
||||
"[nix]": {
|
||||
"editor.defaultFormatter": "jnoortheen.nix-ide",
|
||||
},
|
||||
"[json]": {
|
||||
"editor.defaultFormatter": "vscode.json-language-features"
|
||||
}
|
||||
}
|
||||
169
flake.lock
generated
169
flake.lock
generated
@@ -7,11 +7,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1739098586,
|
||||
"narHash": "sha256-08FW+tVGWQKdiPZqXk6FO1JNB/Zybi7IYSWSGpp8V0Y=",
|
||||
"lastModified": 1740813555,
|
||||
"narHash": "sha256-GvkG6zoBsWgI7pbt92NZjGcOZMYC1C6pW8Lc4W1xMBU=",
|
||||
"owner": "AdnanHodzic",
|
||||
"repo": "auto-cpufreq",
|
||||
"rev": "e6bbd2c8335a33f25a3fcb3bd2376e790f460ba2",
|
||||
"rev": "6be154724337fa74236ee811150872304db21d8b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -87,14 +87,37 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"firefox-addons": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"dir": "pkgs/firefox-addons",
|
||||
"lastModified": 1741379467,
|
||||
"narHash": "sha256-f314Ke28BGoVh4TK8FCzlPZgOl+oV7PvLyPF++ln9M4=",
|
||||
"owner": "rycee",
|
||||
"repo": "nur-expressions",
|
||||
"rev": "0b95936d94ea2a3ce66538f299351cf0b491aa15",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"dir": "pkgs/firefox-addons",
|
||||
"owner": "rycee",
|
||||
"repo": "nur-expressions",
|
||||
"type": "gitlab"
|
||||
}
|
||||
},
|
||||
"firefox-gnome-theme": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1736899990,
|
||||
"narHash": "sha256-S79Hqn2EtSxU4kp99t8tRschSifWD4p/51++0xNWUxw=",
|
||||
"lastModified": 1739223196,
|
||||
"narHash": "sha256-vAxN2f3rvl5q62gQQjZGVSvF93nAsOxntuFz+e/655w=",
|
||||
"owner": "rafaelmardojai",
|
||||
"repo": "firefox-gnome-theme",
|
||||
"rev": "91ca1f82d717b02ceb03a3f423cbe8082ebbb26d",
|
||||
"rev": "a89108e6272426f4eddd93ba17d0ea101c34fb21",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -104,7 +127,6 @@
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1733328505,
|
||||
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
|
||||
@@ -119,7 +141,44 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-parts": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": [
|
||||
"stylix",
|
||||
"nur",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1733312601,
|
||||
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"locked": {
|
||||
"lastModified": 1629284811,
|
||||
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "c5d161cc0af116a2e17f54316f0bf43f0819785c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils_2": {
|
||||
"inputs": {
|
||||
"systems": [
|
||||
"stylix",
|
||||
@@ -169,11 +228,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1735882644,
|
||||
"narHash": "sha256-3FZAG+pGt3OElQjesCAWeMkQ7C/nB1oTHLRQ8ceP110=",
|
||||
"lastModified": 1737465171,
|
||||
"narHash": "sha256-R10v2hoJRLq8jcL4syVFag7nIGE7m13qO48wRIukWNg=",
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "a5a961387e75ae44cc20f0a57ae463da5e959656",
|
||||
"rev": "9364dc02281ce2d37a1f55b6e51f7c0f65a75f17",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -228,11 +287,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1739287084,
|
||||
"narHash": "sha256-CtRNJsqsXIArJV+AKWZVBMO8PD1FQB69br+WMtTJEgI=",
|
||||
"lastModified": 1741378606,
|
||||
"narHash": "sha256-ytDmwV93lZ1f6jswJkxEQz5cBlwje/2rH/yUZDADZNs=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "8f351726c5841d86854e7fa6003ea472352f5208",
|
||||
"rev": "95711f926676018d279ba09fe7530d03b5d5b3e2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -244,11 +303,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1739020877,
|
||||
"narHash": "sha256-mIvECo/NNdJJ/bXjNqIh8yeoSjVLAuDuTUzAo7dzs8Y=",
|
||||
"lastModified": 1741246872,
|
||||
"narHash": "sha256-Q6pMP4a9ed636qilcYX8XUguvKl/0/LGXhHcRI91p0U=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a79cfe0ebd24952b580b1cf08cd906354996d547",
|
||||
"rev": "10069ef4cf863633f57238f179a0297de84bd8d3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -258,9 +317,33 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nur": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"nixpkgs": [
|
||||
"stylix",
|
||||
"nixpkgs"
|
||||
],
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1740408283,
|
||||
"narHash": "sha256-2xECnhgF3MU9YjmvOkrRp8wRFo2OjjewgCtlfckhL5s=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "496a4a11162bdffb9a7b258942de138873f019f7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"auto-cpufreq": "auto-cpufreq",
|
||||
"firefox-addons": "firefox-addons",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"stylix": "stylix"
|
||||
@@ -274,7 +357,7 @@
|
||||
"base16-vim": "base16-vim",
|
||||
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||
"flake-compat": "flake-compat",
|
||||
"flake-utils": "flake-utils",
|
||||
"flake-utils": "flake-utils_2",
|
||||
"git-hooks": "git-hooks",
|
||||
"gnome-shell": "gnome-shell",
|
||||
"home-manager": [
|
||||
@@ -283,18 +366,20 @@
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"nur": "nur",
|
||||
"systems": "systems",
|
||||
"tinted-foot": "tinted-foot",
|
||||
"tinted-kitty": "tinted-kitty",
|
||||
"tinted-schemes": "tinted-schemes",
|
||||
"tinted-tmux": "tinted-tmux",
|
||||
"tinted-zed": "tinted-zed"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1739215427,
|
||||
"narHash": "sha256-1yIsiPwwxXal7+wkWogjPhsM5BjRlK61lAHQtlX8s04=",
|
||||
"lastModified": 1741381249,
|
||||
"narHash": "sha256-lr62m73oNjkSX0ar7tPalTSTzaqCsuZCEYyK8mPbXPU=",
|
||||
"owner": "danth",
|
||||
"repo": "stylix",
|
||||
"rev": "4af2686c1c62176d0ce28c4d55e813ae5ed52b6f",
|
||||
"rev": "4891f1471b682af073574dc51fa4810f1470ef8f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -352,14 +437,30 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"tinted-schemes": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1740351358,
|
||||
"narHash": "sha256-Hdk850xgAd3DL8KX0AbyU7tC834d3Lej1jOo3duWiOA=",
|
||||
"owner": "tinted-theming",
|
||||
"repo": "schemes",
|
||||
"rev": "a1bc2bd89e693e7e3f5764cfe8114e2ae150e184",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tinted-theming",
|
||||
"repo": "schemes",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"tinted-tmux": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1735737224,
|
||||
"narHash": "sha256-FO2hRBkZsjlIRqzNHCPc/52yxg11kHGA8MEtSun9RwE=",
|
||||
"lastModified": 1740272597,
|
||||
"narHash": "sha256-/etfUV3HzAaLW3RSJVwUaW8ULbMn3v6wbTlXSKbcoWQ=",
|
||||
"owner": "tinted-theming",
|
||||
"repo": "tinted-tmux",
|
||||
"rev": "aead506a9930c717ebf81cc83a2126e9ca08fa64",
|
||||
"rev": "b6c7f46c8718cc484f2db8b485b06e2a98304cd0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -383,6 +484,28 @@
|
||||
"repo": "base16-zed",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"treefmt-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"stylix",
|
||||
"nur",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1733222881,
|
||||
"narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "49717b5af6f80172275d47a418c9719a31a78b53",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
||||
11
flake.nix
11
flake.nix
@@ -18,6 +18,10 @@
|
||||
url = "github:AdnanHodzic/auto-cpufreq";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
firefox-addons = {
|
||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
@@ -25,7 +29,7 @@
|
||||
home-manager,
|
||||
...
|
||||
} @ inputs: let
|
||||
system = "aarch64-linux";
|
||||
system = "x86_64-linux";
|
||||
host = "garand-laptop";
|
||||
username = "garand_plg";
|
||||
in {
|
||||
@@ -44,11 +48,12 @@
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit username;
|
||||
inherit system;
|
||||
inherit inputs;
|
||||
inherit username;
|
||||
inherit host;
|
||||
};
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useGlobalPkgs = false;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.users.${username} = import ./hosts/${host}/home.nix;
|
||||
|
||||
@@ -1,17 +1,29 @@
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
host,
|
||||
username,
|
||||
options,
|
||||
...
|
||||
}: let
|
||||
inherit (import ./variables.nix) keyboardLayout;
|
||||
in {
|
||||
{...}: {
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./users.nix
|
||||
|
||||
./config/boot.nix
|
||||
./config/drivers.nix
|
||||
./config/hardware.nix
|
||||
./config/localization.nix
|
||||
./config/networking.nix
|
||||
|
||||
./config/nixpkgs.nix
|
||||
./config/nixpkgs/clients.nix
|
||||
./config/nixpkgs/codium.nix
|
||||
./config/nixpkgs/fundamentals.nix
|
||||
./config/nixpkgs/gaming.nix
|
||||
./config/nixpkgs/multimedia.nix
|
||||
./config/nixpkgs/tools.nix
|
||||
./config/nixpkgs/tty.nix
|
||||
|
||||
./config/programs.nix
|
||||
./config/security.nix
|
||||
./config/services.nix
|
||||
./config/stylix.nix
|
||||
./config/virtualization.nix
|
||||
|
||||
../../modules/amd-drivers.nix
|
||||
../../modules/nvidia-drivers.nix
|
||||
../../modules/nvidia-prime-drivers.nix
|
||||
@@ -20,829 +32,6 @@ in {
|
||||
../../modules/local-hardware-clock.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
# Kernel
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
# This is for OBS Virtual Cam Support
|
||||
kernelModules = ["v4l2loopback"];
|
||||
extraModulePackages = [config.boot.kernelPackages.v4l2loopback];
|
||||
# Needed For Some Steam Games
|
||||
kernel.sysctl = {
|
||||
"vm.max_map_count" = 2147483642;
|
||||
};
|
||||
# Bootloader.
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
# Make /tmp a tmpfs
|
||||
tmp = {
|
||||
useTmpfs = false;
|
||||
tmpfsSize = "30%";
|
||||
};
|
||||
# Appimage Support
|
||||
binfmt.registrations.appimage = {
|
||||
wrapInterpreterInShell = false;
|
||||
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
||||
recognitionType = "magic";
|
||||
offset = 0;
|
||||
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
||||
magicOrExtension = ''\x7fELF....AI\x02'';
|
||||
};
|
||||
plymouth.enable = true;
|
||||
};
|
||||
|
||||
# Styling Options
|
||||
stylix = {
|
||||
enable = true;
|
||||
image = ../../config/wallpapers/attack-on-titan-mikasa-ackerman.jpg;
|
||||
# base16Scheme = {
|
||||
# base00 = "232136";
|
||||
# base01 = "2a273f";
|
||||
# base02 = "393552";
|
||||
# base03 = "6e6a86";
|
||||
# base04 = "908caa";
|
||||
# base05 = "e0def4";
|
||||
# base06 = "e0def4";
|
||||
# base07 = "56526e";
|
||||
# base08 = "eb6f92";
|
||||
# base09 = "f6c177";
|
||||
# base0A = "ea9a97";
|
||||
# base0B = "3e8fb0";
|
||||
# base0C = "9ccfd8";
|
||||
# base0D = "c4a7e7";
|
||||
# base0E = "f6c177";
|
||||
# base0F = "56526e";
|
||||
# };
|
||||
polarity = "dark";
|
||||
opacity.terminal = 0.8;
|
||||
cursor = {
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Ice";
|
||||
size = 24;
|
||||
};
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.nerd-fonts.fira-mono;
|
||||
name = "FiraCode Nerd Fonts Mono";
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.nerd-fonts.fira-code;
|
||||
name = "FiraCode Nerd Fonts";
|
||||
};
|
||||
serif = {
|
||||
package = pkgs.nerd-fonts.fira-code;
|
||||
name = "FiraCode Nerd Fonts";
|
||||
};
|
||||
sizes = {
|
||||
applications = 12;
|
||||
terminal = 15;
|
||||
desktop = 11;
|
||||
popups = 12;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Extra Module Options
|
||||
drivers = {
|
||||
amdgpu.enable = true;
|
||||
nvidia.enable = false;
|
||||
nvidia-prime = {
|
||||
enable = false;
|
||||
intelBusID = "";
|
||||
nvidiaBusID = "";
|
||||
};
|
||||
intel.enable = false;
|
||||
};
|
||||
vm.guest-services.enable = false;
|
||||
local.hardware-clock.enable = false;
|
||||
|
||||
# Enable networking
|
||||
networking = {
|
||||
nameservers = ["176.9.1.117" "213.196.191.96" "2a01:4f8:151:34aa::198"];
|
||||
networkmanager.enable = true;
|
||||
hostName = host;
|
||||
timeServers = options.networking.timeServers.default ++ ["pool.ntp.org"];
|
||||
};
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Warsaw";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "pl_PL.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "pl_PL.UTF-8";
|
||||
LC_IDENTIFICATION = "pl_PL.UTF-8";
|
||||
LC_MEASUREMENT = "pl_PL.UTF-8";
|
||||
LC_MONETARY = "pl_PL.UTF-8";
|
||||
LC_NAME = "pl_PL.UTF-8";
|
||||
LC_NUMERIC = "pl_PL.UTF-8";
|
||||
LC_PAPER = "pl_PL.UTF-8";
|
||||
LC_TELEPHONE = "pl_PL.UTF-8";
|
||||
LC_TIME = "pl_PL.UTF-8";
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
firefox.enable = false;
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
buf = {
|
||||
symbol = " ";
|
||||
};
|
||||
c = {
|
||||
symbol = " ";
|
||||
};
|
||||
directory = {
|
||||
read_only = " ";
|
||||
};
|
||||
docker_context = {
|
||||
symbol = " ";
|
||||
};
|
||||
fossil_branch = {
|
||||
symbol = " ";
|
||||
};
|
||||
git_branch = {
|
||||
symbol = " ";
|
||||
};
|
||||
golang = {
|
||||
symbol = " ";
|
||||
};
|
||||
hg_branch = {
|
||||
symbol = " ";
|
||||
};
|
||||
hostname = {
|
||||
ssh_symbol = " ";
|
||||
};
|
||||
lua = {
|
||||
symbol = " ";
|
||||
};
|
||||
memory_usage = {
|
||||
symbol = " ";
|
||||
};
|
||||
meson = {
|
||||
symbol = " ";
|
||||
};
|
||||
nim = {
|
||||
symbol = " ";
|
||||
};
|
||||
nix_shell = {
|
||||
symbol = " ";
|
||||
};
|
||||
nodejs = {
|
||||
symbol = " ";
|
||||
};
|
||||
ocaml = {
|
||||
symbol = " ";
|
||||
};
|
||||
package = {
|
||||
symbol = " ";
|
||||
};
|
||||
python = {
|
||||
symbol = " ";
|
||||
};
|
||||
rust = {
|
||||
symbol = " ";
|
||||
};
|
||||
swift = {
|
||||
symbol = " ";
|
||||
};
|
||||
zig = {
|
||||
symbol = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
dconf.enable = true;
|
||||
seahorse.enable = true;
|
||||
fuse.userAllowOther = true;
|
||||
mtr.enable = true;
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
virt-manager.enable = true;
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
auto-cpufreq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
charger = {
|
||||
governor = "performance";
|
||||
turbo = "auto";
|
||||
};
|
||||
|
||||
battery = {
|
||||
governor = "powersave";
|
||||
turbo = "auto";
|
||||
};
|
||||
};
|
||||
};
|
||||
thunar = {
|
||||
enable = true;
|
||||
plugins = with pkgs.xfce; [
|
||||
thunar-archive-plugin
|
||||
thunar-volman
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
pulseaudio = true;
|
||||
};
|
||||
|
||||
users = {
|
||||
mutableUsers = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
killall
|
||||
eza
|
||||
git
|
||||
cmatrix
|
||||
lolcat
|
||||
libvirt
|
||||
lxqt.lxqt-policykit
|
||||
lm_sensors
|
||||
unzip
|
||||
unrar
|
||||
libnotify
|
||||
v4l-utils
|
||||
ydotool
|
||||
duf
|
||||
ncdu
|
||||
wl-clipboard
|
||||
pciutils
|
||||
ffmpeg
|
||||
socat
|
||||
cowsay
|
||||
ripgrep
|
||||
lshw
|
||||
bat
|
||||
pkg-config
|
||||
meson
|
||||
hyprpicker
|
||||
ninja
|
||||
brightnessctl
|
||||
virt-viewer
|
||||
swappy
|
||||
appimage-run
|
||||
networkmanagerapplet
|
||||
yad
|
||||
inxi
|
||||
playerctl
|
||||
nh
|
||||
nixfmt-rfc-style
|
||||
discord
|
||||
libvirt
|
||||
swww
|
||||
grim
|
||||
slurp
|
||||
file-roller
|
||||
swaynotificationcenter
|
||||
imv
|
||||
mpv
|
||||
gimp
|
||||
pavucontrol
|
||||
tree
|
||||
greetd.tuigreet
|
||||
librewolf
|
||||
protonup
|
||||
plex-media-player
|
||||
plexamp
|
||||
bitwarden-desktop
|
||||
vlc
|
||||
nixd
|
||||
ungoogled-chromium
|
||||
slack
|
||||
alejandra
|
||||
tutanota-desktop
|
||||
ookla-speedtest
|
||||
rustdesk
|
||||
bun
|
||||
docker
|
||||
docker-compose
|
||||
docker-slim
|
||||
sl
|
||||
nodejs
|
||||
kdePackages.kdenlive
|
||||
galculator
|
||||
obs-studio
|
||||
thefuck
|
||||
cifs-utils
|
||||
libreoffice
|
||||
bastet
|
||||
nsnake
|
||||
exiftool
|
||||
python3
|
||||
figlet
|
||||
fortune
|
||||
wtf
|
||||
pipes
|
||||
cava
|
||||
wineWowPackages.waylandFull # wine64
|
||||
lazydocker
|
||||
lazygit
|
||||
lutris
|
||||
(vscode-with-extensions.override {
|
||||
vscode = vscodium;
|
||||
vscodeExtensions = with vscode-extensions;
|
||||
[
|
||||
batisteo.vscode-django
|
||||
bradlc.vscode-tailwindcss
|
||||
christian-kohler.npm-intellisense
|
||||
christian-kohler.path-intellisense
|
||||
continue.continue
|
||||
davidanson.vscode-markdownlint
|
||||
dbaeumer.vscode-eslint
|
||||
donjayamanne.githistory
|
||||
esbenp.prettier-vscode
|
||||
ethansk.restore-terminals
|
||||
formulahendry.auto-close-tag
|
||||
formulahendry.auto-rename-tag
|
||||
grapecity.gc-excelviewer
|
||||
gruntfuggly.todo-tree
|
||||
hediet.vscode-drawio
|
||||
jnoortheen.nix-ide
|
||||
mechatroner.rainbow-csv
|
||||
ms-azuretools.vscode-docker
|
||||
ms-python.debugpy
|
||||
ms-python.flake8
|
||||
ms-python.python
|
||||
ms-python.vscode-pylance
|
||||
njpwerner.autodocstring
|
||||
octref.vetur
|
||||
oderwat.indent-rainbow
|
||||
shd101wyy.markdown-preview-enhanced
|
||||
streetsidesoftware.code-spell-checker
|
||||
supermaven.supermaven
|
||||
tomoki1207.pdf
|
||||
visualstudioexptteam.intellicode-api-usage-examples
|
||||
visualstudioexptteam.vscodeintellicode
|
||||
vscode-icons-team.vscode-icons
|
||||
vue.volar
|
||||
wholroyd.jinja
|
||||
yoavbls.pretty-ts-errors
|
||||
]
|
||||
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||
{
|
||||
name = "goto-alias";
|
||||
publisher = "antfu";
|
||||
version = "0.2.1";
|
||||
hash = "sha256-BJBJVG/zW2BW6K0UqQ4EE12VVIxW3g+z5CecZXRPIrM=";
|
||||
}
|
||||
{
|
||||
name = "vite";
|
||||
publisher = "antfu";
|
||||
version = "0.2.5";
|
||||
hash = "sha256-F3uaqoaLXLE7M8OPzNIIUSraTBeRMwtjxrbgQyMIyZE=";
|
||||
}
|
||||
{
|
||||
name = "django-html";
|
||||
publisher = "bibhasdn";
|
||||
version = "1.3.0";
|
||||
hash = "sha256-7xVJVcjmwl6917lqkTa0KFwMLkAvHkNT2wVML14gVCk=";
|
||||
}
|
||||
{
|
||||
name = "django";
|
||||
publisher = "bigonesystems";
|
||||
version = "1.0.2";
|
||||
hash = "sha256-UBmvaCiNQ84qpAObDWyFL18TVFBn0z/6SBDKWeAIzTc=";
|
||||
}
|
||||
{
|
||||
name = "align-imports";
|
||||
publisher = "danielcanada";
|
||||
version = "0.1.0";
|
||||
hash = "sha256-Aj87mxOGer24O24/4/bGQqgLpgoBvfwOCKQyJ8NLplU=";
|
||||
}
|
||||
{
|
||||
name = "python-environment-manager";
|
||||
publisher = "donjayamanne";
|
||||
version = "1.2.7";
|
||||
hash = "sha256-w3csu6rJm/Z6invC/TR7tx6Aq5DD77VM62nem8/QMlg=";
|
||||
}
|
||||
{
|
||||
name = "python-extension-pack";
|
||||
publisher = "donjayamanne";
|
||||
version = "1.7.0";
|
||||
hash = "sha256-ewOw6nMVzNSYddLcCBGKVNvllztFwhEtncE2RFeFcOc=";
|
||||
}
|
||||
{
|
||||
name = "one-dark-pro-monokai-darker";
|
||||
publisher = "eserozvataf";
|
||||
version = "1.1.0";
|
||||
hash = "sha256-jUjBiy0CD7jw2WBMvM3h8bEC2ySEuj7532dC3v9lpyI=";
|
||||
}
|
||||
{
|
||||
name = "imports-sorter";
|
||||
publisher = "glhrmoura";
|
||||
version = "0.1.6";
|
||||
hash = "sha256-M+SWEJAwn8wPJJ+abi2mN0ziK7P6Sjt0iRAKSyTWvkg=";
|
||||
}
|
||||
{
|
||||
name = "bootstrap-intellisense";
|
||||
publisher = "hossaini";
|
||||
version = "2.0.2";
|
||||
hash = "sha256-io6mPkF19EYo1tVTnd87EWX1mH9zAz0Zzks6v5XN3UE=";
|
||||
}
|
||||
{
|
||||
name = "tab-indent-space-align";
|
||||
publisher = "j-zeppenfeld";
|
||||
version = "0.0.3";
|
||||
hash = "sha256-+WEdYJOVWW7YumfzLkvZmrnpUiC85oLsG1BKMwL1NHc=";
|
||||
}
|
||||
{
|
||||
name = "bun-lockb";
|
||||
publisher = "jaaxxx";
|
||||
version = "0.0.7";
|
||||
hash = "sha256-CkdH/luVTFycRn4Td6ovFnEQep+tVEIXsyUjhfJwfN4=";
|
||||
}
|
||||
{
|
||||
name = "search-node-modules";
|
||||
publisher = "jasonnutter";
|
||||
version = "1.3.0";
|
||||
hash = "sha256-X2CkCVF46McnXDlASlRHKixlAzR+hU4ys8A8JsbpfYI=";
|
||||
}
|
||||
{
|
||||
name = "polacode-2019";
|
||||
publisher = "jeff-hykin";
|
||||
version = "0.6.1";
|
||||
hash = "sha256-SbfsD28gaVHAmJskUuc1Q8kA47jrVa3OO5Ur7ULk3jI=";
|
||||
}
|
||||
{
|
||||
name = "vsc-python-indent";
|
||||
publisher = "kevinrose";
|
||||
version = "1.19.0";
|
||||
hash = "sha256-gX0L416RXIQ9S4kFguEJJ7u4GSo7WbpifXmL/mWCU08=";
|
||||
}
|
||||
{
|
||||
name = "json-to-ts";
|
||||
publisher = "mariusalchimavicius";
|
||||
version = "1.8.0";
|
||||
hash = "sha256-WoSycVtUAkVXv7BDuh+jFbnaU1IdVLvVjOYuIuUp79M=";
|
||||
}
|
||||
{
|
||||
name = "inline-fold";
|
||||
publisher = "moalamri";
|
||||
version = "0.2.6";
|
||||
hash = "sha256-VPEp4gtXH787iK0RxjfciIZO1cjkYacjNELzjzcs/FI=";
|
||||
}
|
||||
{
|
||||
name = "vscode-language-pack-pl";
|
||||
publisher = "ms-ceintl";
|
||||
version = "1.97.2025020509";
|
||||
hash = "sha256-D2x745VgarYs6vRo6Eiyx7Zy4FHmFfF01xddbWlLmjM=";
|
||||
}
|
||||
{
|
||||
name = "mdc";
|
||||
publisher = "nuxt";
|
||||
version = "0.2.0";
|
||||
hash = "sha256-M/29ZDg1sva9msGgRe6xqpCYDpW6X/BqKxmiJhzeVXQ=";
|
||||
}
|
||||
{
|
||||
name = "nuxt-vscode-extentions";
|
||||
publisher = "nuxtr";
|
||||
version = "0.0.7";
|
||||
hash = "sha256-LMShrm9fQHr0M8yXHSziq4NZWfK+n1azc5bjiM972O0=";
|
||||
}
|
||||
{
|
||||
name = "nuxtr-vscode";
|
||||
publisher = "nuxtr";
|
||||
version = "0.2.16";
|
||||
hash = "sha256-DVoq8zdlJ2ch8PCG34f1PRkILym9XdclUHQ9s2B5OME=";
|
||||
}
|
||||
{
|
||||
name = "bun-vscode";
|
||||
publisher = "oven";
|
||||
version = "0.0.26";
|
||||
hash = "sha256-klMkKAorWJj2o015FWbQQfpmYe4JM0UOM+WVh+YPtI4=";
|
||||
}
|
||||
{
|
||||
name = "csv-to-table";
|
||||
publisher = "phplasma";
|
||||
version = "1.4.1";
|
||||
hash = "sha256-npe7cQ4lAZr8HCyQSJmVsCDUJcOhGhL6y1QtUtqUY50=";
|
||||
}
|
||||
{
|
||||
name = "nuxt-snippets";
|
||||
publisher = "praburangki";
|
||||
version = "1.8.0";
|
||||
hash = "sha256-qrWrrDO/Ie/mdygw18C0mrPzNQzZLsd+fapUyTVhc14=";
|
||||
}
|
||||
{
|
||||
name = "bash-debug";
|
||||
publisher = "rogalmic";
|
||||
version = "0.3.9";
|
||||
hash = "sha256-f8FUZCvz/PonqQP9RCNbyQLZPnN5Oce0Eezm/hD19Fg=";
|
||||
}
|
||||
{
|
||||
name = "vs-code-prettier-eslint";
|
||||
publisher = "rvest";
|
||||
version = "6.0.0";
|
||||
hash = "sha256-PogNeKhIlcGxUKrW5gHvFhNluUelWDGHCdg5K+xGXJY=";
|
||||
}
|
||||
{
|
||||
name = "vscode-preview-docs";
|
||||
publisher = "selemondev";
|
||||
version = "0.1.7";
|
||||
hash = "sha256-Q9bEIb2m6cqHtdVjOaNivfYvbc5/VVdabM2NVTwBOFA=";
|
||||
}
|
||||
{
|
||||
name = "svg-preview";
|
||||
publisher = "simonsiefke";
|
||||
version = "2.8.3";
|
||||
hash = "sha256-hIVe1MmkyuHoDa56ZQUsSAGMlKWABoQ0FBOfgZZDbCw=";
|
||||
}
|
||||
{
|
||||
name = "autoimport";
|
||||
publisher = "steoates";
|
||||
version = "1.5.4";
|
||||
hash = "sha256-7iIwJJsoNbtTopc+BQ+195aSCLqdNAaGtMoxShyhBWY=";
|
||||
}
|
||||
{
|
||||
name = "code-spell-checker-polish";
|
||||
publisher = "streetsidesoftware";
|
||||
version = "2.1.3";
|
||||
hash = "sha256-MZeTvK9dO4Kj6hK+afJPWGmnKBtlLrrnoqtUd5s2te0=";
|
||||
}
|
||||
{
|
||||
name = "vscode-pets";
|
||||
publisher = "tonybaloney";
|
||||
version = "1.30.0";
|
||||
hash = "sha256-RxOA6xQ29JuB0NzEqMDkF9W1U+AsvgAOzGbtIUw0WyM=";
|
||||
}
|
||||
{
|
||||
name = "explorer";
|
||||
publisher = "vitest";
|
||||
version = "1.12.1";
|
||||
hash = "sha256-WG2/MWxU/XhSOjXuBoyszpD/HFb8mfrt525povSEES4=";
|
||||
}
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
noto-fonts-emoji
|
||||
noto-fonts-cjk-sans
|
||||
font-awesome
|
||||
# Commenting Symbola out to fix install this will need to be fixed or an alternative found.
|
||||
# symbola
|
||||
material-icons
|
||||
];
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
ZANEYOS_VERSION = "2.2";
|
||||
ZANEYOS = "true";
|
||||
};
|
||||
|
||||
# Extra Portal Configuration
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal
|
||||
];
|
||||
configPackages = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal
|
||||
];
|
||||
};
|
||||
|
||||
# Services to start
|
||||
services = {
|
||||
xserver = {
|
||||
enable = false;
|
||||
xkb = {
|
||||
layout = "${keyboardLayout}";
|
||||
variant = "";
|
||||
};
|
||||
};
|
||||
resolved = {
|
||||
enable = true;
|
||||
dnssec = "true";
|
||||
domains = ["~."]; # "use as default interface for all requests"
|
||||
# (see man resolved.conf)
|
||||
# let Avahi handle mDNS publication
|
||||
extraConfig = ''
|
||||
DNSOverTLS=opportunistic
|
||||
MulticastDNS=resolve
|
||||
'';
|
||||
llmnr = "true";
|
||||
};
|
||||
greetd = {
|
||||
enable = true;
|
||||
vt = 3;
|
||||
settings = {
|
||||
default_session = {
|
||||
# Wayland Desktop Manager is installed only for user ryan via home-manager!
|
||||
user = username;
|
||||
# .wayland-session is a script generated by home-manager, which links to the current wayland compositor(sway/hyprland or others).
|
||||
# with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config here.
|
||||
# command = "$HOME/.wayland-session"; # start a wayland session directly without a login manager
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland"; # start Hyprland with a TUI login manager
|
||||
};
|
||||
};
|
||||
};
|
||||
smartd = {
|
||||
enable = false;
|
||||
autodetect = true;
|
||||
};
|
||||
libinput.enable = true;
|
||||
fstrim.enable = true;
|
||||
gvfs.enable = true;
|
||||
openssh.enable = true;
|
||||
flatpak.enable = false;
|
||||
printing = {
|
||||
enable = true;
|
||||
drivers = [
|
||||
# pkgs.hplipWithPlugin
|
||||
];
|
||||
};
|
||||
# auto-cpufreq.enable = true;
|
||||
gnome.gnome-keyring.enable = true;
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
ipp-usb.enable = true;
|
||||
syncthing = {
|
||||
enable = false;
|
||||
user = "${username}";
|
||||
dataDir = "/home/${username}";
|
||||
configDir = "/home/${username}/.config/syncthing";
|
||||
};
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
pulseaudio = {
|
||||
enable = false;
|
||||
extraConfig = "load-module module-combine-sink";
|
||||
};
|
||||
rpcbind.enable = false;
|
||||
nfs.server.enable = false;
|
||||
# ollama = {
|
||||
# enable = true;
|
||||
# package = pkgs.ollama;
|
||||
# # acceleration = "rocm";
|
||||
# # environmentVariables = {
|
||||
# # HCC_AMDGPU_TARGET = "gfx1036";
|
||||
# # };
|
||||
# # rocmOverrideGfx = "10.3.6";
|
||||
# loadModels = [
|
||||
# # "deepseek-r1:1.5b"
|
||||
# # "deepseek-r1:7b"
|
||||
# ];
|
||||
# };
|
||||
# open-webui = {
|
||||
# enable = true;
|
||||
# package = pkgs.open-webui;
|
||||
# };
|
||||
};
|
||||
|
||||
systemd.services.flatpak-repo = {
|
||||
path = [pkgs.flatpak];
|
||||
script = ''
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
'';
|
||||
};
|
||||
|
||||
hardware = {
|
||||
sane = {
|
||||
enable = true;
|
||||
extraBackends = [pkgs.sane-airscan];
|
||||
disabledDefaultBackends = ["escl"];
|
||||
};
|
||||
logitech = {
|
||||
wireless = {
|
||||
enable = false;
|
||||
enableGraphical = false;
|
||||
};
|
||||
};
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
};
|
||||
services.blueman.enable = true;
|
||||
|
||||
# Security / Polkit
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
polkit = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (
|
||||
subject.isInGroup("users")
|
||||
&& (
|
||||
action.id == "org.freedesktop.login1.reboot" ||
|
||||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
||||
action.id == "org.freedesktop.login1.power-off" ||
|
||||
action.id == "org.freedesktop.login1.power-off-multiple-sessions"
|
||||
)
|
||||
)
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
})
|
||||
'';
|
||||
};
|
||||
pam.services.swaylock = {
|
||||
text = ''
|
||||
auth include login
|
||||
'';
|
||||
};
|
||||
sudo = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
Defaults pwfeedback
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# Optimization settings and garbage collection automation
|
||||
nix = {
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
substituters = ["https://hyprland.cachix.org"];
|
||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||
};
|
||||
|
||||
# Virtualization / Containers
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
docker = {
|
||||
enable = true;
|
||||
package = pkgs.docker;
|
||||
};
|
||||
# podman = {
|
||||
# enable = true;
|
||||
# dockerCompat = true;
|
||||
# defaultNetwork.settings.dns_enabled = true;
|
||||
# };
|
||||
};
|
||||
|
||||
# fileSystems."/mnt/Garand-Library" = {
|
||||
# device = "//192.168.1.156/Garand-Library";
|
||||
# fsType = "cifs";
|
||||
# options = [
|
||||
# "rw" # Odczyt i zapis
|
||||
# "uid=1000" # UID użytkownika montującego (np. 1000 to często UID pierwszego użytkownika)
|
||||
# "gid=100" # GID grupy użytkownika montującego
|
||||
# "file_mode=0775" # Uprawnienia dla plików
|
||||
# "dir_mode=0775" # Uprawnienia dla katalogów
|
||||
# "credentials=/etc/smb-credentials"
|
||||
# ];
|
||||
# };
|
||||
|
||||
# services.openvpn.servers = {
|
||||
# RO-P2P = {
|
||||
# config = ''
|
||||
# config /home/garand_plg/Documents/RO-ovpn-tcp.ovpn
|
||||
# '';
|
||||
# updateResolvConf = true;
|
||||
# };
|
||||
# };
|
||||
|
||||
console.keyMap = "${keyboardLayout}";
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
|
||||
37
hosts/garand-laptop/config/boot.nix
Normal file
37
hosts/garand-laptop/config/boot.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
boot = {
|
||||
# Kernel
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
# This is for OBS Virtual Cam Support
|
||||
kernelModules = ["v4l2loopback"];
|
||||
extraModulePackages = [config.boot.kernelPackages.v4l2loopback];
|
||||
# Needed For Some Steam Games
|
||||
kernel.sysctl = {
|
||||
"vm.max_map_count" = 2147483642;
|
||||
};
|
||||
# Bootloader.
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
# Make /tmp a tmpfs
|
||||
tmp = {
|
||||
useTmpfs = false;
|
||||
tmpfsSize = "30%";
|
||||
};
|
||||
# Appimage Support
|
||||
binfmt.registrations.appimage = {
|
||||
wrapInterpreterInShell = false;
|
||||
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
||||
recognitionType = "magic";
|
||||
offset = 0;
|
||||
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
||||
magicOrExtension = ''\x7fELF....AI\x02'';
|
||||
};
|
||||
plymouth.enable = true;
|
||||
};
|
||||
}
|
||||
15
hosts/garand-laptop/config/drivers.nix
Normal file
15
hosts/garand-laptop/config/drivers.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{...}: {
|
||||
# Extra Module Options
|
||||
drivers = {
|
||||
amdgpu.enable = true;
|
||||
nvidia.enable = false;
|
||||
nvidia-prime = {
|
||||
enable = false;
|
||||
intelBusID = "";
|
||||
nvidiaBusID = "";
|
||||
};
|
||||
intel.enable = false;
|
||||
};
|
||||
vm.guest-services.enable = false;
|
||||
local.hardware-clock.enable = false;
|
||||
}
|
||||
36
hosts/garand-laptop/config/hardware.nix
Normal file
36
hosts/garand-laptop/config/hardware.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{pkgs, ...}: {
|
||||
hardware = {
|
||||
sane = {
|
||||
enable = true;
|
||||
extraBackends = [pkgs.sane-airscan];
|
||||
disabledDefaultBackends = ["escl"];
|
||||
};
|
||||
logitech = {
|
||||
wireless = {
|
||||
enable = false;
|
||||
enableGraphical = false;
|
||||
};
|
||||
};
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
};
|
||||
|
||||
# fileSystems."/mnt/Garand-Library" = {
|
||||
# device = "//192.168.1.156/Garand-Library";
|
||||
# fsType = "cifs";
|
||||
# options = [
|
||||
# "rw" # Odczyt i zapis
|
||||
# "uid=1000" # UID użytkownika montującego (np. 1000 to często UID pierwszego użytkownika)
|
||||
# "gid=100" # GID grupy użytkownika montującego
|
||||
# "file_mode=0775" # Uprawnienia dla plików
|
||||
# "dir_mode=0775" # Uprawnienia dla katalogów
|
||||
# "credentials=/etc/smb-credentials"
|
||||
# ];
|
||||
# };
|
||||
}
|
||||
19
hosts/garand-laptop/config/localization.nix
Normal file
19
hosts/garand-laptop/config/localization.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{...}: {
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Warsaw";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "pl_PL.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "pl_PL.UTF-8";
|
||||
LC_IDENTIFICATION = "pl_PL.UTF-8";
|
||||
LC_MEASUREMENT = "pl_PL.UTF-8";
|
||||
LC_MONETARY = "pl_PL.UTF-8";
|
||||
LC_NAME = "pl_PL.UTF-8";
|
||||
LC_NUMERIC = "pl_PL.UTF-8";
|
||||
LC_PAPER = "pl_PL.UTF-8";
|
||||
LC_TELEPHONE = "pl_PL.UTF-8";
|
||||
LC_TIME = "pl_PL.UTF-8";
|
||||
};
|
||||
};
|
||||
}
|
||||
19
hosts/garand-laptop/config/networking.nix
Normal file
19
hosts/garand-laptop/config/networking.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
host,
|
||||
options,
|
||||
...
|
||||
}: {
|
||||
# Enable networking
|
||||
networking = {
|
||||
nameservers = ["176.9.1.117" "213.196.191.96" "2a01:4f8:151:34aa::198"];
|
||||
networkmanager.enable = true;
|
||||
hostName = host;
|
||||
timeServers = options.networking.timeServers.default ++ ["pool.ntp.org"];
|
||||
};
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
}
|
||||
52
hosts/garand-laptop/config/nixpkgs.nix
Normal file
52
hosts/garand-laptop/config/nixpkgs.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Optimization settings and garbage collection automation
|
||||
nix = {
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
substituters = ["https://hyprland.cachix.org"];
|
||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
pulseaudio = true;
|
||||
};
|
||||
|
||||
# Extra Portal Configuration
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal
|
||||
];
|
||||
configPackages = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal
|
||||
];
|
||||
};
|
||||
|
||||
environment = {
|
||||
variables = {
|
||||
ZANEYOS_VERSION = "2.2";
|
||||
ZANEYOS = "true";
|
||||
};
|
||||
};
|
||||
}
|
||||
14
hosts/garand-laptop/config/nixpkgs/clients.nix
Normal file
14
hosts/garand-laptop/config/nixpkgs/clients.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
# Klienty
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
# rustdesk
|
||||
nextcloud-client
|
||||
plexamp
|
||||
bitwarden-desktop
|
||||
tutanota-desktop
|
||||
discord
|
||||
slack
|
||||
ungoogled-chromium
|
||||
# firefoxpwa
|
||||
];
|
||||
}
|
||||
247
hosts/garand-laptop/config/nixpkgs/codium.nix
Normal file
247
hosts/garand-laptop/config/nixpkgs/codium.nix
Normal file
@@ -0,0 +1,247 @@
|
||||
{pkgs, ...}: {
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
(vscode-with-extensions.override {
|
||||
vscode = vscodium;
|
||||
vscodeExtensions = with vscode-extensions;
|
||||
[
|
||||
batisteo.vscode-django
|
||||
bradlc.vscode-tailwindcss
|
||||
christian-kohler.npm-intellisense
|
||||
christian-kohler.path-intellisense
|
||||
continue.continue
|
||||
davidanson.vscode-markdownlint
|
||||
dbaeumer.vscode-eslint
|
||||
donjayamanne.githistory
|
||||
esbenp.prettier-vscode
|
||||
ethansk.restore-terminals
|
||||
formulahendry.auto-close-tag
|
||||
formulahendry.auto-rename-tag
|
||||
grapecity.gc-excelviewer
|
||||
gruntfuggly.todo-tree
|
||||
hediet.vscode-drawio
|
||||
jnoortheen.nix-ide
|
||||
mechatroner.rainbow-csv
|
||||
ms-azuretools.vscode-docker
|
||||
ms-python.debugpy
|
||||
ms-python.flake8
|
||||
# ms-python.python
|
||||
ms-python.vscode-pylance
|
||||
njpwerner.autodocstring
|
||||
octref.vetur
|
||||
oderwat.indent-rainbow
|
||||
shd101wyy.markdown-preview-enhanced
|
||||
streetsidesoftware.code-spell-checker
|
||||
supermaven.supermaven
|
||||
tomoki1207.pdf
|
||||
visualstudioexptteam.intellicode-api-usage-examples
|
||||
visualstudioexptteam.vscodeintellicode
|
||||
vscode-icons-team.vscode-icons
|
||||
vue.volar
|
||||
wholroyd.jinja
|
||||
yoavbls.pretty-ts-errors
|
||||
]
|
||||
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||
{
|
||||
name = "python";
|
||||
publisher = "ms-python";
|
||||
version = "2025.3.2025030601";
|
||||
hash = "sha256-xK9esQjcdDz8pNgGjB3HUKpwySSykNTXo3ubDW0nBR8=";
|
||||
}
|
||||
{
|
||||
name = "goto-alias";
|
||||
publisher = "antfu";
|
||||
version = "0.2.1";
|
||||
hash = "sha256-BJBJVG/zW2BW6K0UqQ4EE12VVIxW3g+z5CecZXRPIrM=";
|
||||
}
|
||||
{
|
||||
name = "vite";
|
||||
publisher = "antfu";
|
||||
version = "0.2.5";
|
||||
hash = "sha256-F3uaqoaLXLE7M8OPzNIIUSraTBeRMwtjxrbgQyMIyZE=";
|
||||
}
|
||||
{
|
||||
name = "django-html";
|
||||
publisher = "bibhasdn";
|
||||
version = "1.3.0";
|
||||
hash = "sha256-7xVJVcjmwl6917lqkTa0KFwMLkAvHkNT2wVML14gVCk=";
|
||||
}
|
||||
{
|
||||
name = "django";
|
||||
publisher = "bigonesystems";
|
||||
version = "1.0.2";
|
||||
hash = "sha256-UBmvaCiNQ84qpAObDWyFL18TVFBn0z/6SBDKWeAIzTc=";
|
||||
}
|
||||
{
|
||||
name = "align-imports";
|
||||
publisher = "danielcanada";
|
||||
version = "0.1.0";
|
||||
hash = "sha256-Aj87mxOGer24O24/4/bGQqgLpgoBvfwOCKQyJ8NLplU=";
|
||||
}
|
||||
{
|
||||
name = "python-environment-manager";
|
||||
publisher = "donjayamanne";
|
||||
version = "1.2.7";
|
||||
hash = "sha256-w3csu6rJm/Z6invC/TR7tx6Aq5DD77VM62nem8/QMlg=";
|
||||
}
|
||||
{
|
||||
name = "one-dark-pro-monokai-darker";
|
||||
publisher = "eserozvataf";
|
||||
version = "1.1.0";
|
||||
hash = "sha256-jUjBiy0CD7jw2WBMvM3h8bEC2ySEuj7532dC3v9lpyI=";
|
||||
}
|
||||
{
|
||||
name = "imports-sorter";
|
||||
publisher = "glhrmoura";
|
||||
version = "0.1.6";
|
||||
hash = "sha256-M+SWEJAwn8wPJJ+abi2mN0ziK7P6Sjt0iRAKSyTWvkg=";
|
||||
}
|
||||
{
|
||||
name = "bootstrap-intellisense";
|
||||
publisher = "hossaini";
|
||||
version = "2.0.2";
|
||||
hash = "sha256-io6mPkF19EYo1tVTnd87EWX1mH9zAz0Zzks6v5XN3UE=";
|
||||
}
|
||||
{
|
||||
name = "tab-indent-space-align";
|
||||
publisher = "j-zeppenfeld";
|
||||
version = "0.0.3";
|
||||
hash = "sha256-+WEdYJOVWW7YumfzLkvZmrnpUiC85oLsG1BKMwL1NHc=";
|
||||
}
|
||||
{
|
||||
name = "bun-lockb";
|
||||
publisher = "jaaxxx";
|
||||
version = "0.0.7";
|
||||
hash = "sha256-CkdH/luVTFycRn4Td6ovFnEQep+tVEIXsyUjhfJwfN4=";
|
||||
}
|
||||
{
|
||||
name = "search-node-modules";
|
||||
publisher = "jasonnutter";
|
||||
version = "1.3.0";
|
||||
hash = "sha256-X2CkCVF46McnXDlASlRHKixlAzR+hU4ys8A8JsbpfYI=";
|
||||
}
|
||||
{
|
||||
name = "polacode-2019";
|
||||
publisher = "jeff-hykin";
|
||||
version = "0.6.1";
|
||||
hash = "sha256-SbfsD28gaVHAmJskUuc1Q8kA47jrVa3OO5Ur7ULk3jI=";
|
||||
}
|
||||
{
|
||||
name = "vsc-python-indent";
|
||||
publisher = "kevinrose";
|
||||
version = "1.19.0";
|
||||
hash = "sha256-gX0L416RXIQ9S4kFguEJJ7u4GSo7WbpifXmL/mWCU08=";
|
||||
}
|
||||
{
|
||||
name = "json-to-ts";
|
||||
publisher = "mariusalchimavicius";
|
||||
version = "1.8.0";
|
||||
hash = "sha256-WoSycVtUAkVXv7BDuh+jFbnaU1IdVLvVjOYuIuUp79M=";
|
||||
}
|
||||
{
|
||||
name = "inline-fold";
|
||||
publisher = "moalamri";
|
||||
version = "0.2.6";
|
||||
hash = "sha256-VPEp4gtXH787iK0RxjfciIZO1cjkYacjNELzjzcs/FI=";
|
||||
}
|
||||
{
|
||||
name = "vscode-language-pack-pl";
|
||||
publisher = "ms-ceintl";
|
||||
version = "1.97.2025020509";
|
||||
hash = "sha256-D2x745VgarYs6vRo6Eiyx7Zy4FHmFfF01xddbWlLmjM=";
|
||||
}
|
||||
{
|
||||
name = "mdc";
|
||||
publisher = "nuxt";
|
||||
version = "0.2.0";
|
||||
hash = "sha256-M/29ZDg1sva9msGgRe6xqpCYDpW6X/BqKxmiJhzeVXQ=";
|
||||
}
|
||||
{
|
||||
name = "nuxt-vscode-extentions";
|
||||
publisher = "nuxtr";
|
||||
version = "0.0.7";
|
||||
hash = "sha256-LMShrm9fQHr0M8yXHSziq4NZWfK+n1azc5bjiM972O0=";
|
||||
}
|
||||
{
|
||||
name = "nuxtr-vscode";
|
||||
publisher = "nuxtr";
|
||||
version = "0.2.16";
|
||||
hash = "sha256-DVoq8zdlJ2ch8PCG34f1PRkILym9XdclUHQ9s2B5OME=";
|
||||
}
|
||||
{
|
||||
name = "bun-vscode";
|
||||
publisher = "oven";
|
||||
version = "0.0.26";
|
||||
hash = "sha256-klMkKAorWJj2o015FWbQQfpmYe4JM0UOM+WVh+YPtI4=";
|
||||
}
|
||||
{
|
||||
name = "csv-to-table";
|
||||
publisher = "phplasma";
|
||||
version = "1.4.1";
|
||||
hash = "sha256-npe7cQ4lAZr8HCyQSJmVsCDUJcOhGhL6y1QtUtqUY50=";
|
||||
}
|
||||
{
|
||||
name = "nuxt-snippets";
|
||||
publisher = "praburangki";
|
||||
version = "1.8.0";
|
||||
hash = "sha256-qrWrrDO/Ie/mdygw18C0mrPzNQzZLsd+fapUyTVhc14=";
|
||||
}
|
||||
{
|
||||
name = "bash-debug";
|
||||
publisher = "rogalmic";
|
||||
version = "0.3.9";
|
||||
hash = "sha256-f8FUZCvz/PonqQP9RCNbyQLZPnN5Oce0Eezm/hD19Fg=";
|
||||
}
|
||||
{
|
||||
name = "vs-code-prettier-eslint";
|
||||
publisher = "rvest";
|
||||
version = "6.0.0";
|
||||
hash = "sha256-PogNeKhIlcGxUKrW5gHvFhNluUelWDGHCdg5K+xGXJY=";
|
||||
}
|
||||
{
|
||||
name = "vscode-preview-docs";
|
||||
publisher = "selemondev";
|
||||
version = "0.1.7";
|
||||
hash = "sha256-Q9bEIb2m6cqHtdVjOaNivfYvbc5/VVdabM2NVTwBOFA=";
|
||||
}
|
||||
{
|
||||
name = "svg-preview";
|
||||
publisher = "simonsiefke";
|
||||
version = "2.8.3";
|
||||
hash = "sha256-hIVe1MmkyuHoDa56ZQUsSAGMlKWABoQ0FBOfgZZDbCw=";
|
||||
}
|
||||
{
|
||||
name = "autoimport";
|
||||
publisher = "steoates";
|
||||
version = "1.5.4";
|
||||
hash = "sha256-7iIwJJsoNbtTopc+BQ+195aSCLqdNAaGtMoxShyhBWY=";
|
||||
}
|
||||
{
|
||||
name = "code-spell-checker-polish";
|
||||
publisher = "streetsidesoftware";
|
||||
version = "2.1.3";
|
||||
hash = "sha256-MZeTvK9dO4Kj6hK+afJPWGmnKBtlLrrnoqtUd5s2te0=";
|
||||
}
|
||||
{
|
||||
name = "vscode-pets";
|
||||
publisher = "tonybaloney";
|
||||
version = "1.30.0";
|
||||
hash = "sha256-RxOA6xQ29JuB0NzEqMDkF9W1U+AsvgAOzGbtIUw0WyM=";
|
||||
}
|
||||
{
|
||||
name = "explorer";
|
||||
publisher = "vitest";
|
||||
version = "1.12.1";
|
||||
hash = "sha256-WG2/MWxU/XhSOjXuBoyszpD/HFb8mfrt525povSEES4=";
|
||||
}
|
||||
{
|
||||
name = "prettify-json";
|
||||
publisher = "mohsen1";
|
||||
version = "0.0.3";
|
||||
hash = "sha256-lvds+lFDzt1s6RikhrnAKJipRHU+Dk85ZO49d1sA8uo=";
|
||||
}
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
40
hosts/garand-laptop/config/nixpkgs/fundamentals.nix
Normal file
40
hosts/garand-laptop/config/nixpkgs/fundamentals.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
# Fundamentalne programy dla systemu
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
killall
|
||||
eza
|
||||
git
|
||||
libnotify
|
||||
v4l-utils
|
||||
ydotool
|
||||
duf
|
||||
ncdu
|
||||
wl-clipboard
|
||||
pciutils
|
||||
ffmpeg
|
||||
socat
|
||||
ripgrep
|
||||
lshw
|
||||
bat
|
||||
pkg-config
|
||||
meson
|
||||
ninja
|
||||
brightnessctl
|
||||
swappy
|
||||
appimage-run
|
||||
networkmanagerapplet
|
||||
yad
|
||||
inxi
|
||||
playerctl
|
||||
nh
|
||||
nixfmt-rfc-style
|
||||
file-roller
|
||||
tree
|
||||
nixd
|
||||
alejandra
|
||||
docker
|
||||
docker-compose
|
||||
cifs-utils
|
||||
];
|
||||
}
|
||||
8
hosts/garand-laptop/config/nixpkgs/gaming.nix
Normal file
8
hosts/garand-laptop/config/nixpkgs/gaming.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
# Narzędzia do gier
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
protonup
|
||||
wineWowPackages.waylandFull # wine64
|
||||
lutris
|
||||
];
|
||||
}
|
||||
17
hosts/garand-laptop/config/nixpkgs/multimedia.nix
Normal file
17
hosts/garand-laptop/config/nixpkgs/multimedia.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
# Programy multimedialne
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
swww
|
||||
grim
|
||||
slurp
|
||||
swaynotificationcenter
|
||||
imv
|
||||
mpv
|
||||
gimp
|
||||
pavucontrol
|
||||
vlc
|
||||
kdePackages.kdenlive
|
||||
obs-studio
|
||||
libreoffice
|
||||
];
|
||||
}
|
||||
17
hosts/garand-laptop/config/nixpkgs/tools.nix
Normal file
17
hosts/garand-laptop/config/nixpkgs/tools.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
# Narzędzia systemowe
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
lm_sensors
|
||||
unzip
|
||||
unrar
|
||||
hyprpicker
|
||||
virt-viewer
|
||||
libvirt
|
||||
greetd.tuigreet
|
||||
galculator
|
||||
thefuck
|
||||
lazydocker
|
||||
lazygit
|
||||
docker-slim
|
||||
];
|
||||
}
|
||||
19
hosts/garand-laptop/config/nixpkgs/tty.nix
Normal file
19
hosts/garand-laptop/config/nixpkgs/tty.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
# Aplikacje terminalowe
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
gambit-chess
|
||||
tty-solitaire
|
||||
bastet
|
||||
nsnake
|
||||
cmatrix
|
||||
lolcat
|
||||
cowsay
|
||||
sl
|
||||
figlet
|
||||
fortune
|
||||
wtf
|
||||
pipes
|
||||
cava
|
||||
ookla-speedtest
|
||||
];
|
||||
}
|
||||
109
hosts/garand-laptop/config/programs.nix
Normal file
109
hosts/garand-laptop/config/programs.nix
Normal file
@@ -0,0 +1,109 @@
|
||||
{pkgs, ...}: {
|
||||
programs = {
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
buf = {
|
||||
symbol = " ";
|
||||
};
|
||||
c = {
|
||||
symbol = " ";
|
||||
};
|
||||
directory = {
|
||||
read_only = " ";
|
||||
};
|
||||
docker_context = {
|
||||
symbol = " ";
|
||||
};
|
||||
fossil_branch = {
|
||||
symbol = " ";
|
||||
};
|
||||
git_branch = {
|
||||
symbol = " ";
|
||||
};
|
||||
golang = {
|
||||
symbol = " ";
|
||||
};
|
||||
hg_branch = {
|
||||
symbol = " ";
|
||||
};
|
||||
hostname = {
|
||||
ssh_symbol = " ";
|
||||
};
|
||||
lua = {
|
||||
symbol = " ";
|
||||
};
|
||||
memory_usage = {
|
||||
symbol = " ";
|
||||
};
|
||||
meson = {
|
||||
symbol = " ";
|
||||
};
|
||||
nim = {
|
||||
symbol = " ";
|
||||
};
|
||||
nix_shell = {
|
||||
symbol = " ";
|
||||
};
|
||||
nodejs = {
|
||||
symbol = " ";
|
||||
};
|
||||
ocaml = {
|
||||
symbol = " ";
|
||||
};
|
||||
package = {
|
||||
symbol = " ";
|
||||
};
|
||||
python = {
|
||||
symbol = " ";
|
||||
};
|
||||
rust = {
|
||||
symbol = " ";
|
||||
};
|
||||
swift = {
|
||||
symbol = " ";
|
||||
};
|
||||
zig = {
|
||||
symbol = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
dconf.enable = true;
|
||||
seahorse.enable = true;
|
||||
fuse.userAllowOther = true;
|
||||
mtr.enable = true;
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
virt-manager.enable = true;
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
auto-cpufreq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
charger = {
|
||||
governor = "performance";
|
||||
turbo = "auto";
|
||||
};
|
||||
|
||||
battery = {
|
||||
governor = "powersave";
|
||||
turbo = "auto";
|
||||
};
|
||||
};
|
||||
};
|
||||
thunar = {
|
||||
enable = true;
|
||||
plugins = with pkgs.xfce; [
|
||||
thunar-archive-plugin
|
||||
thunar-volman
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
40
hosts/garand-laptop/config/security.nix
Normal file
40
hosts/garand-laptop/config/security.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{...}: {
|
||||
# Security / Polkit
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
polkit = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (
|
||||
subject.isInGroup("users")
|
||||
&& (
|
||||
action.id == "org.freedesktop.login1.reboot" ||
|
||||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
||||
action.id == "org.freedesktop.login1.power-off" ||
|
||||
action.id == "org.freedesktop.login1.power-off-multiple-sessions"
|
||||
)
|
||||
)
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
})
|
||||
'';
|
||||
};
|
||||
pam.services.swaylock = {
|
||||
text = ''
|
||||
auth include login
|
||||
'';
|
||||
};
|
||||
sudo = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
Defaults pwfeedback
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
users = {
|
||||
mutableUsers = true;
|
||||
};
|
||||
}
|
||||
127
hosts/garand-laptop/config/services.nix
Normal file
127
hosts/garand-laptop/config/services.nix
Normal file
@@ -0,0 +1,127 @@
|
||||
{
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}: let
|
||||
inherit (import ../variables.nix) keyboardLayout;
|
||||
in {
|
||||
# Services to start
|
||||
services = {
|
||||
blueman.enable = true;
|
||||
xserver = {
|
||||
enable = false;
|
||||
xkb = {
|
||||
layout = "${keyboardLayout}";
|
||||
variant = "";
|
||||
};
|
||||
};
|
||||
resolved = {
|
||||
enable = true;
|
||||
dnssec = "true";
|
||||
domains = ["~."]; # "use as default interface for all requests"
|
||||
# (see man resolved.conf)
|
||||
# let Avahi handle mDNS publication
|
||||
extraConfig = ''
|
||||
DNSOverTLS=opportunistic
|
||||
MulticastDNS=resolve
|
||||
'';
|
||||
llmnr = "true";
|
||||
};
|
||||
greetd = {
|
||||
enable = true;
|
||||
vt = 3;
|
||||
settings = {
|
||||
default_session = {
|
||||
# Wayland Desktop Manager is installed only for user ryan via home-manager!
|
||||
user = username;
|
||||
# .wayland-session is a script generated by home-manager, which links to the current wayland compositor(sway/hyprland or others).
|
||||
# with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config here.
|
||||
# command = "$HOME/.wayland-session"; # start a wayland session directly without a login manager
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland"; # start Hyprland with a TUI login manager
|
||||
};
|
||||
};
|
||||
};
|
||||
smartd = {
|
||||
enable = false;
|
||||
autodetect = true;
|
||||
};
|
||||
libinput = {
|
||||
enable = true;
|
||||
mouse = {
|
||||
accelProfile = "flat";
|
||||
};
|
||||
touchpad = {
|
||||
accelProfile = "flat";
|
||||
};
|
||||
};
|
||||
fstrim.enable = true;
|
||||
gvfs.enable = true;
|
||||
openssh.enable = true;
|
||||
flatpak.enable = false;
|
||||
printing = {
|
||||
enable = true;
|
||||
drivers = [
|
||||
# pkgs.hplipWithPlugin
|
||||
];
|
||||
};
|
||||
gnome.gnome-keyring.enable = true;
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
ipp-usb.enable = true;
|
||||
syncthing = {
|
||||
enable = false;
|
||||
user = "${username}";
|
||||
dataDir = "/home/${username}";
|
||||
configDir = "/home/${username}/.config/syncthing";
|
||||
};
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
pulseaudio = {
|
||||
enable = false;
|
||||
extraConfig = "load-module module-combine-sink";
|
||||
};
|
||||
rpcbind.enable = false;
|
||||
nfs.server.enable = false;
|
||||
# ollama = {
|
||||
# enable = true;
|
||||
# package = pkgs.ollama;
|
||||
# # acceleration = "rocm";
|
||||
# # environmentVariables = {
|
||||
# # HCC_AMDGPU_TARGET = "gfx1036";
|
||||
# # };
|
||||
# # rocmOverrideGfx = "10.3.6";
|
||||
# loadModels = [
|
||||
# # "deepseek-r1:1.5b"
|
||||
# # "deepseek-r1:7b"
|
||||
# ];
|
||||
# };
|
||||
# open-webui = {
|
||||
# enable = true;
|
||||
# package = pkgs.open-webui;
|
||||
# };
|
||||
# penvpn.servers = {
|
||||
# RO-P2P = {
|
||||
# config = ''
|
||||
# config /home/garand_plg/Documents/RO-ovpn-tcp.ovpn
|
||||
# '';
|
||||
# updateResolvConf = true;
|
||||
# };
|
||||
# };
|
||||
};
|
||||
|
||||
console.keyMap = "${keyboardLayout}";
|
||||
|
||||
systemd.services.flatpak-repo = {
|
||||
path = [pkgs.flatpak];
|
||||
script = ''
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
'';
|
||||
};
|
||||
}
|
||||
63
hosts/garand-laptop/config/stylix.nix
Normal file
63
hosts/garand-laptop/config/stylix.nix
Normal file
@@ -0,0 +1,63 @@
|
||||
{pkgs, ...}: {
|
||||
# Styling Options
|
||||
stylix = {
|
||||
enable = true;
|
||||
image = ../../../config/wallpapers/attack-on-titan-mikasa-ackerman.jpg;
|
||||
# base16Scheme = {
|
||||
# base00 = "232136";
|
||||
# base01 = "2a273f";
|
||||
# base02 = "393552";
|
||||
# base03 = "6e6a86";
|
||||
# base04 = "908caa";
|
||||
# base05 = "e0def4";
|
||||
# base06 = "e0def4";
|
||||
# base07 = "56526e";
|
||||
# base08 = "eb6f92";
|
||||
# base09 = "f6c177";
|
||||
# base0A = "ea9a97";
|
||||
# base0B = "3e8fb0";
|
||||
# base0C = "9ccfd8";
|
||||
# base0D = "c4a7e7";
|
||||
# base0E = "f6c177";
|
||||
# base0F = "56526e";
|
||||
# };
|
||||
polarity = "dark";
|
||||
opacity.terminal = 0.8;
|
||||
cursor = {
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Ice";
|
||||
size = 24;
|
||||
};
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.nerd-fonts.fira-mono;
|
||||
name = "FiraCode Nerd Fonts Mono";
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.nerd-fonts.fira-code;
|
||||
name = "FiraCode Nerd Fonts";
|
||||
};
|
||||
serif = {
|
||||
package = pkgs.nerd-fonts.fira-code;
|
||||
name = "FiraCode Nerd Fonts";
|
||||
};
|
||||
sizes = {
|
||||
applications = 12;
|
||||
terminal = 15;
|
||||
desktop = 11;
|
||||
popups = 12;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
noto-fonts-emoji
|
||||
noto-fonts-cjk-sans
|
||||
font-awesome
|
||||
# Commenting Symbola out to fix install this will need to be fixed or an alternative found.
|
||||
# symbola
|
||||
material-icons
|
||||
];
|
||||
};
|
||||
}
|
||||
15
hosts/garand-laptop/config/virtualization.nix
Normal file
15
hosts/garand-laptop/config/virtualization.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{pkgs, ...}: {
|
||||
# Virtualization / Containers
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
docker = {
|
||||
enable = true;
|
||||
package = pkgs.docker;
|
||||
};
|
||||
# podman = {
|
||||
# enable = true;
|
||||
# dockerCompat = true;
|
||||
# defaultNetwork.settings.dns_enabled = true;
|
||||
# };
|
||||
};
|
||||
}
|
||||
@@ -1,17 +1,4 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
username,
|
||||
host,
|
||||
...
|
||||
}: let
|
||||
inherit (import ./variables.nix) gitUsername gitEmail;
|
||||
in {
|
||||
# Home Manager Settings
|
||||
home.username = "${username}";
|
||||
home.homeDirectory = "/home/${username}";
|
||||
home.stateVersion = "23.11";
|
||||
|
||||
{...}: {
|
||||
# Import Program Configurations
|
||||
imports = [
|
||||
../../config/emoji.nix
|
||||
@@ -24,242 +11,12 @@ in {
|
||||
../../config/waybar.nix
|
||||
../../config/wlogout.nix
|
||||
../../config/fastfetch
|
||||
|
||||
./home/home.nix
|
||||
./home/misc.nix
|
||||
./home/programs.nix
|
||||
./home/programs.librewolf.nix
|
||||
./home/services.nix
|
||||
./home/styles.nix
|
||||
];
|
||||
|
||||
# Place Files Inside Home Directory
|
||||
home.file = {
|
||||
"Pictures/Wallpapers".source = ../../config/wallpapers;
|
||||
"Pictures/Wallpapers".recursive = true;
|
||||
".config/wlogout/icons".source = ../../config/wlogout;
|
||||
".config/wlogout/icons".recursive = true;
|
||||
".face.icon".source = ../../config/face.jpg;
|
||||
".config/face.jpg".source = ../../config/face.jpg;
|
||||
".config/swappy/config".text = ''
|
||||
[Default]
|
||||
save_dir=/home/${username}/Pictures/Screenshots
|
||||
save_filename_format=swappy-%Y%m%d-%H%M%S.png
|
||||
show_panel=false
|
||||
line_size=5
|
||||
text_size=20
|
||||
text_font=Ubuntu
|
||||
paint_mode=brush
|
||||
early_exit=true
|
||||
fill_shape=false
|
||||
'';
|
||||
};
|
||||
|
||||
# Install & Configure Git
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "${gitUsername}";
|
||||
userEmail = "${gitEmail}";
|
||||
};
|
||||
|
||||
# Create XDG Dirs
|
||||
xdg = {
|
||||
userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
};
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = ["qemu:///system"];
|
||||
uris = ["qemu:///system"];
|
||||
};
|
||||
};
|
||||
|
||||
# Styling Options
|
||||
stylix = {
|
||||
targets = {
|
||||
waybar = {
|
||||
enable = false;
|
||||
};
|
||||
rofi = {
|
||||
enable = false;
|
||||
};
|
||||
hyprland = {
|
||||
enable = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
gtk = {
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
gtk4.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
};
|
||||
qt = {
|
||||
enable = true;
|
||||
style.name = lib.mkDefault "adwaita-dark";
|
||||
platformTheme.name = lib.mkDefault "gtk3";
|
||||
};
|
||||
|
||||
# Scripts
|
||||
home.packages = [
|
||||
(import ../../scripts/emopicker9000.nix {inherit pkgs;})
|
||||
(import ../../scripts/task-waybar.nix {inherit pkgs;})
|
||||
(import ../../scripts/squirtle.nix {inherit pkgs;})
|
||||
(import ../../scripts/nvidia-offload.nix {inherit pkgs;})
|
||||
(import ../../scripts/wallsetter.nix {
|
||||
inherit pkgs;
|
||||
inherit username;
|
||||
})
|
||||
(import ../../scripts/web-search.nix {inherit pkgs;})
|
||||
(import ../../scripts/rofi-launcher.nix {inherit pkgs;})
|
||||
(import ../../scripts/screenshootin.nix {inherit pkgs;})
|
||||
(import ../../scripts/list-hypr-bindings.nix {
|
||||
inherit pkgs;
|
||||
inherit host;
|
||||
})
|
||||
];
|
||||
|
||||
services = {
|
||||
hypridle = {
|
||||
settings = {
|
||||
general = {
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
ignore_dbus_inhibit = false;
|
||||
lock_cmd = "hyprlock";
|
||||
};
|
||||
listener = [
|
||||
{
|
||||
timeout = 900;
|
||||
on-timeout = "hyprlock";
|
||||
}
|
||||
{
|
||||
timeout = 1200;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
gh.enable = true;
|
||||
btop = {
|
||||
enable = true;
|
||||
};
|
||||
kitty = {
|
||||
enable = true;
|
||||
package = pkgs.kitty;
|
||||
settings = {
|
||||
scrollback_lines = 2000;
|
||||
wheel_scroll_min_lines = 1;
|
||||
window_padding_width = 4;
|
||||
confirm_os_window_close = 0;
|
||||
};
|
||||
extraConfig = ''
|
||||
tab_bar_style fade
|
||||
tab_fade 1
|
||||
active_tab_font_style bold
|
||||
inactive_tab_font_style bold
|
||||
'';
|
||||
};
|
||||
starship = {
|
||||
enable = true;
|
||||
package = pkgs.starship;
|
||||
};
|
||||
bash = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
profileExtra = ''
|
||||
#if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
|
||||
# exec Hyprland
|
||||
#fi
|
||||
'';
|
||||
initExtra = ''
|
||||
fastfetch
|
||||
if [ -f $HOME/.bashrc-personal ]; then
|
||||
source $HOME/.bashrc-personal
|
||||
fi
|
||||
fc
|
||||
'';
|
||||
shellAliases = {
|
||||
os-sw = "sudo nixos-rebuild switch --flake ~/zaneyos";
|
||||
os-bt = "sudo nixos-rebuild boot --flake ~/zaneyos";
|
||||
os-ts = "sudo nixos-rebuild test --flake ~/zaneyos";
|
||||
os-up = "sudo nix flake update";
|
||||
os-upg = "sudo nix flake update && sudo nixos-rebuild switch --flake ~/zaneyos";
|
||||
os-up-np = "sudo nix flake update --update-input nixpkgs";
|
||||
os-up-hm = "sudo nix flake update --update-input home-manager";
|
||||
os-up-sx = "sudo nix flake update --update-input stylix";
|
||||
os-up-af = "sudo nix flake update --update-input auto-cpufreq";
|
||||
fr = "nh os switch --hostname ${host} /home/${username}/zaneyos";
|
||||
fu = "nh os switch --hostname ${host} --update /home/${username}/zaneyos";
|
||||
hypr-cli = "hyprctl clients";
|
||||
zu = "sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)";
|
||||
ncg = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||
n = "nano";
|
||||
f = "fuck";
|
||||
cat = "bat";
|
||||
st = "speedtest";
|
||||
ls = "eza --icons";
|
||||
ll = "eza -lh --icons --grid --group-directories-first";
|
||||
la = "eza -lah --icons --grid --group-directories-first";
|
||||
ssh-server = "ssh garand_plg@192.168.1.156 -p 556 -i ~/.ssh/hp-t640-homeserver";
|
||||
fc = "fortune | cowsay";
|
||||
terminal = "cat /home/garand_plg/Documents/terminal.txt";
|
||||
e-terminal = "nano /home/garand_plg/Documents/terminal.txt";
|
||||
mkgidf = "git diff > git-diff.txt";
|
||||
".." = "cd ..";
|
||||
kys = "shutdown now";
|
||||
};
|
||||
};
|
||||
home-manager.enable = true;
|
||||
hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
grace = 10;
|
||||
hide_cursor = true;
|
||||
no_fade_in = false;
|
||||
};
|
||||
background = lib.mkDefault [
|
||||
{
|
||||
path = "/home/${username}/Pictures/Wallpapers/attack-on-titan-mikasa-ackerman.jpg";
|
||||
blur_passes = 3;
|
||||
blur_size = 8;
|
||||
}
|
||||
];
|
||||
image = [
|
||||
{
|
||||
path = "/home/${username}/.config/face.jpg";
|
||||
size = 150;
|
||||
border_size = 4;
|
||||
border_color = "rgb(0C96F9)";
|
||||
rounding = -1; # Negative means circle
|
||||
position = "0, 200";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
];
|
||||
input-field = lib.mkDefault [
|
||||
{
|
||||
size = "200, 50";
|
||||
position = "0, -80";
|
||||
monitor = "";
|
||||
dots_center = true;
|
||||
fade_on_empty = false;
|
||||
font_color = "rgb(CFE6F4)";
|
||||
inner_color = "rgb(657DC2)";
|
||||
outer_color = "rgb(0D0E15)";
|
||||
outline_thickness = 5;
|
||||
placeholder_text = "Password...";
|
||||
shadow_passes = 2;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
52
hosts/garand-laptop/home/home.nix
Normal file
52
hosts/garand-laptop/home/home.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
pkgs,
|
||||
username,
|
||||
host,
|
||||
...
|
||||
}: {
|
||||
# Home Manager Settings
|
||||
home = {
|
||||
username = "${username}";
|
||||
homeDirectory = "/home/${username}";
|
||||
stateVersion = "23.11";
|
||||
# Place Files Inside Home Directory
|
||||
file = {
|
||||
"Pictures/Wallpapers".source = ../../../config/wallpapers;
|
||||
"Pictures/Wallpapers".recursive = true;
|
||||
".config/wlogout/icons".source = ../../../config/wlogout;
|
||||
".config/wlogout/icons".recursive = true;
|
||||
".face.icon".source = ../../../config/face.jpg;
|
||||
".config/face.jpg".source = ../../../config/face.jpg;
|
||||
".config/swappy/config".text = ''
|
||||
[Default]
|
||||
save_dir=/home/${username}/Pictures/Screenshots
|
||||
save_filename_format=swappy-%Y%m%d-%H%M%S.png
|
||||
show_panel=false
|
||||
line_size=5
|
||||
text_size=20
|
||||
text_font=Ubuntu
|
||||
paint_mode=brush
|
||||
early_exit=true
|
||||
fill_shape=false
|
||||
'';
|
||||
};
|
||||
# Scripts
|
||||
packages = [
|
||||
(import ../../../scripts/emopicker9000.nix {inherit pkgs;})
|
||||
(import ../../../scripts/task-waybar.nix {inherit pkgs;})
|
||||
(import ../../../scripts/squirtle.nix {inherit pkgs;})
|
||||
(import ../../../scripts/nvidia-offload.nix {inherit pkgs;})
|
||||
(import ../../../scripts/wallsetter.nix {
|
||||
inherit pkgs;
|
||||
inherit username;
|
||||
})
|
||||
(import ../../../scripts/web-search.nix {inherit pkgs;})
|
||||
(import ../../../scripts/rofi-launcher.nix {inherit pkgs;})
|
||||
(import ../../../scripts/screenshootin.nix {inherit pkgs;})
|
||||
(import ../../../scripts/list-hypr-bindings.nix {
|
||||
inherit pkgs;
|
||||
inherit host;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
16
hosts/garand-laptop/home/misc.nix
Normal file
16
hosts/garand-laptop/home/misc.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{...}: {
|
||||
# Create XDG Dirs
|
||||
xdg = {
|
||||
userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
};
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = ["qemu:///system"];
|
||||
uris = ["qemu:///system"];
|
||||
};
|
||||
};
|
||||
}
|
||||
883
hosts/garand-laptop/home/programs.librewolf.nix
Normal file
883
hosts/garand-laptop/home/programs.librewolf.nix
Normal file
File diff suppressed because one or more lines are too long
144
hosts/garand-laptop/home/programs.nix
Normal file
144
hosts/garand-laptop/home/programs.nix
Normal file
@@ -0,0 +1,144 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
username,
|
||||
host,
|
||||
...
|
||||
}: let
|
||||
inherit (import ../variables.nix) gitUsername gitEmail;
|
||||
in {
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "${gitUsername}";
|
||||
userEmail = "${gitEmail}";
|
||||
extraConfig = {
|
||||
credential.helper = "cache --timeout=3600";
|
||||
};
|
||||
};
|
||||
|
||||
gh.enable = true;
|
||||
|
||||
btop = {
|
||||
enable = false;
|
||||
};
|
||||
|
||||
kitty = {
|
||||
enable = true;
|
||||
package = pkgs.kitty;
|
||||
settings = {
|
||||
scrollback_lines = 2000;
|
||||
wheel_scroll_min_lines = 1;
|
||||
window_padding_width = 4;
|
||||
confirm_os_window_close = 0;
|
||||
};
|
||||
extraConfig = ''
|
||||
tab_bar_style fade
|
||||
tab_fade 1
|
||||
active_tab_font_style bold
|
||||
inactive_tab_font_style bold
|
||||
'';
|
||||
};
|
||||
|
||||
starship = {
|
||||
enable = true;
|
||||
package = pkgs.starship;
|
||||
};
|
||||
|
||||
bash = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
profileExtra = ''
|
||||
#if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
|
||||
# exec Hyprland
|
||||
#fi
|
||||
'';
|
||||
initExtra = ''
|
||||
fastfetch
|
||||
if [ -f $HOME/.bashrc-personal ]; then
|
||||
source $HOME/.bashrc-personal
|
||||
fi
|
||||
fc
|
||||
'';
|
||||
shellAliases = {
|
||||
os-sw = "sudo nixos-rebuild switch --flake ~/zaneyos";
|
||||
os-bt = "sudo nixos-rebuild boot --flake ~/zaneyos";
|
||||
os-ts = "sudo nixos-rebuild test --flake ~/zaneyos";
|
||||
os-up = "sudo nix flake update";
|
||||
os-upg = "sudo nix flake update && sudo nixos-rebuild switch --flake ~/zaneyos";
|
||||
os-up-np = "sudo nix flake update --update-input nixpkgs";
|
||||
os-up-hm = "sudo nix flake update --update-input home-manager";
|
||||
os-up-sx = "sudo nix flake update --update-input stylix";
|
||||
os-up-af = "sudo nix flake update --update-input auto-cpufreq";
|
||||
os-up-fa = "sudo nix flake update --update-input firefox-addons";
|
||||
fr = "nh os switch --hostname ${host} /home/${username}/zaneyos";
|
||||
fu = "nh os switch --hostname ${host} --update /home/${username}/zaneyos";
|
||||
hypr-cli = "hyprctl clients";
|
||||
zu = "sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)";
|
||||
ncg = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||
n = "nano";
|
||||
f = "fuck";
|
||||
cat = "bat";
|
||||
st = "speedtest";
|
||||
ls = "eza --icons";
|
||||
ll = "eza -lh --icons --grid --group-directories-first";
|
||||
la = "eza -lah --icons --grid --group-directories-first";
|
||||
ssh-server = "ssh garand_plg@192.168.1.156 -p 556 -i ~/.ssh/hp-t640-homeserver";
|
||||
fc = "fortune | cowsay";
|
||||
terminal = "cat /home/garand_plg/Documents/terminal.txt";
|
||||
e-terminal = "nano /home/garand_plg/Documents/terminal.txt";
|
||||
mkgidf = "git diff > git-diff.txt";
|
||||
".." = "cd ..";
|
||||
kys = "shutdown now";
|
||||
};
|
||||
};
|
||||
|
||||
hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
grace = 10;
|
||||
hide_cursor = true;
|
||||
no_fade_in = false;
|
||||
};
|
||||
background = lib.mkForce [
|
||||
{
|
||||
path = "/home/${username}/Pictures/Wallpapers/attack-on-titan-mikasa-ackerman.jpg";
|
||||
blur_passes = 3;
|
||||
blur_size = 8;
|
||||
}
|
||||
];
|
||||
image = [
|
||||
{
|
||||
path = "/home/${username}/.config/face.jpg";
|
||||
size = 150;
|
||||
border_size = 4;
|
||||
border_color = "rgb(0C96F9)";
|
||||
rounding = -1; # Negative means circle
|
||||
position = "0, 200";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
];
|
||||
input-field = lib.mkDefault [
|
||||
{
|
||||
size = "200, 50";
|
||||
position = "0, -80";
|
||||
monitor = "";
|
||||
dots_center = true;
|
||||
fade_on_empty = false;
|
||||
font_color = "rgb(CFE6F4)";
|
||||
inner_color = "rgb(657DC2)";
|
||||
outer_color = "rgb(0D0E15)";
|
||||
outline_thickness = 5;
|
||||
placeholder_text = "Password...";
|
||||
shadow_passes = 2;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
24
hosts/garand-laptop/home/services.nix
Normal file
24
hosts/garand-laptop/home/services.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{...}: {
|
||||
services = {
|
||||
hypridle = {
|
||||
settings = {
|
||||
general = {
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
ignore_dbus_inhibit = false;
|
||||
lock_cmd = "hyprlock";
|
||||
};
|
||||
listener = [
|
||||
{
|
||||
timeout = 900;
|
||||
on-timeout = "hyprlock";
|
||||
}
|
||||
{
|
||||
timeout = 1200;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
39
hosts/garand-laptop/home/styles.nix
Normal file
39
hosts/garand-laptop/home/styles.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# Styling Options
|
||||
stylix = {
|
||||
targets = {
|
||||
waybar = {
|
||||
enable = false;
|
||||
};
|
||||
rofi = {
|
||||
enable = false;
|
||||
};
|
||||
hyprland = {
|
||||
enable = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
gtk4.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
style.name = lib.mkDefault "adwaita-dark";
|
||||
platformTheme.name = lib.mkDefault "gtk3";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user