Compare commits

..

12 commits

Author SHA1 Message Date
ae00a90d1c non important commit 2026-03-15 09:29:07 +01:00
2d2b75d195 reee 2026-03-14 23:37:46 +01:00
97b008689d reee 2026-03-14 23:34:58 +01:00
fc3c55b4a7 reeee 2026-03-14 23:17:36 +01:00
b0ba53b89e sdasdsa 2026-03-14 22:47:21 +01:00
b03991f082 adssa 2026-03-14 22:45:54 +01:00
28af9d6cc4 adssa 2026-03-14 22:45:33 +01:00
3b2e94cd9f asdasd 2026-03-14 22:44:26 +01:00
01b2970436 why does nixos require me to commit before rebuilding........ 2026-03-14 22:42:57 +01:00
260eed30e3 reee 2026-03-14 22:39:42 +01:00
9471e48f65 default fix 2026-03-14 22:16:46 +01:00
35377104df first bug fixes 2026-03-14 22:10:10 +01:00
15 changed files with 195 additions and 84 deletions

View file

@ -10,5 +10,5 @@
../modules/sddm.nix
];
networking.allowedTCPPorts = [9123];
networking.firewall.allowedTCPPorts = [9123];
}

View file

@ -1,4 +1,8 @@
{
pkgs,
inputs,
...
}: {
hardware.graphics = {
enable = true;
enable32Bit = true;
@ -7,7 +11,16 @@
xdg = {
mime.enable = true;
menus.enable = true;
portal.enable = true;
portal = {
enable = true;
extraPortals = [pkgs.xdg-desktop-portal-cosmic];
config.common.default = "cosmic";
};
};
programs.niri = {
enable = true;
package = inputs.niri-flake.packages.${pkgs.system}.niri-stable;
};
services.xserver = {

View file

@ -14,7 +14,7 @@ in {
qtvirtualkeyboard
];
enable = true;
wayland.enable = false;
wayland.enable = true;
autoNumlock = true;
enableHidpi = false;
theme = "sddm-astronaut-theme";

View file

@ -1,7 +1,6 @@
{
device-name,
pkgs,
lib,
...
}: {
system.stateVersion = "25.11";
@ -19,7 +18,7 @@
boot = {
loader = {
grub.enable = true;
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
@ -40,6 +39,9 @@
programs.noisetorch.enable = true;
console.keyMap = "cz-lat2";
services.xserver.xkb = {
layout = "cz";
};
time.timeZone = "Europe/Prague";
i18n = {
@ -65,9 +67,4 @@
openFirewall = true;
};
};
environment.systemPackages = [
(lib.hiPrio pkgs.uutils-coreutils.override {prefix = "";})
(lib.hiPrio pkgs.uutils-findutils.override {prefix = "";})
];
}

108
flake.lock generated
View file

@ -256,6 +256,64 @@
"type": "github"
}
},
"niri-flake": {
"inputs": {
"niri-stable": "niri-stable",
"niri-unstable": "niri-unstable",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable",
"xwayland-satellite-stable": "xwayland-satellite-stable",
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1773501701,
"narHash": "sha256-+0LBAEm8F5h9Nm+hdS07aoS1W4oTtW6c8lltb66oOYQ=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "39ac039250a4a32bf8691405cac04864fc66a70d",
"type": "github"
},
"original": {
"owner": "sodiboo",
"repo": "niri-flake",
"type": "github"
}
},
"niri-stable": {
"flake": false,
"locked": {
"lastModified": 1756556321,
"narHash": "sha256-RLD89dfjN0RVO86C/Mot0T7aduCygPGaYbog566F0Qo=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "01be0e65f4eb91a9cd624ac0b76aaeab765c7294",
"type": "github"
},
"original": {
"owner": "YaLTeR",
"ref": "v25.08",
"repo": "niri",
"type": "github"
}
},
"niri-unstable": {
"flake": false,
"locked": {
"lastModified": 1773130184,
"narHash": "sha256-3bwx4WqCB06yfQIGB+OgIckOkEDyKxiTD5pOo4Xz2rI=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "b07bde3ee82dd73115e6b949e4f3f63695da35ea",
"type": "github"
},
"original": {
"owner": "YaLTeR",
"repo": "niri",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1773282481,
@ -272,6 +330,22 @@
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1773375660,
"narHash": "sha256-SEzUWw2Rf5Ki3bcM26nSKgbeoqi2uYy8IHVBqOKjX3w=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3e20095fe3c6cbb1ddcef89b26969a69a1570776",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": {
"inputs": {
"flake-parts": [
@ -326,6 +400,7 @@
"inputs": {
"floatc": "floatc",
"home-manager": "home-manager",
"niri-flake": "niri-flake",
"nixpkgs": "nixpkgs",
"nvf": "nvf",
"stylix": "stylix",
@ -498,6 +573,39 @@
"type": "github"
}
},
"xwayland-satellite-stable": {
"flake": false,
"locked": {
"lastModified": 1755491097,
"narHash": "sha256-m+9tUfsmBeF2Gn4HWa6vSITZ4Gz1eA1F5Kh62B0N4oE=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
"rev": "388d291e82ffbc73be18169d39470f340707edaa",
"type": "github"
},
"original": {
"owner": "Supreeeme",
"ref": "v0.7",
"repo": "xwayland-satellite",
"type": "github"
}
},
"xwayland-satellite-unstable": {
"flake": false,
"locked": {
"lastModified": 1773499041,
"narHash": "sha256-XZ4/tVdLeAYDgKe4JD4C7yYUKydMxwt8c2j6APFWcIc=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
"rev": "309d8e2a29953f7465dc14c939e2afe4682c0aa9",
"type": "github"
},
"original": {
"owner": "Supreeeme",
"repo": "xwayland-satellite",
"type": "github"
}
},
"zen-browser": {
"inputs": {
"nixpkgs": [

View file

@ -51,7 +51,6 @@
inputs.home-manager.nixosModules.default
{
home-manager = {
enable = true;
useUserPackages = true;
useGlobalPkgs = true;

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
inputs,
...
}: {
home.packages = with pkgs; [
# Browser
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.default
@ -16,6 +20,7 @@
libreoffice
trilium-desktop
xournalpp
cosmic-files
# Images
pixieditor

View file

@ -1,54 +1,17 @@
{
config,
lib,
...
}: let
cfg = config.myModules;
in {
{lib, ...}: {
options.myModules = {
games.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable games module.";
};
dailyApps.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable daily applications.";
};
niri.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable niri wayland compositor config.";
};
nvf.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable nvf (neovim) configuration.";
};
shell.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable shell configuration.";
};
createProject.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable create-project tooling.";
};
};
imports = [
(lib.mkIf cfg.dailyApps.enable ./daily_apps.nix)
(lib.mkIf cfg.niri.enable ./niri.nix)
(lib.mkIf cfg.nvf.enable ./nvf.nix)
(lib.mkIf cfg.shell.enable ./shell.nix)
(lib.mkIf cfg.games.enable ./games/minecraft.nix)
(lib.mkIf cfg.createProject.enable ./create-project)
./daily_apps.nix
./niri.nix
./nvf.nix
./shell
./create-project/create-project.nix
./games
];
}

View file

@ -0,0 +1,6 @@
{
imports = [
./minecraft.nix
./heroic.nix
];
}

View file

@ -0,0 +1,12 @@
{
pkgs,
config,
lib,
...
}: {
config = lib.mkIf config.myModules.games.enable {
home.packages = with pkgs; [
heroic
];
};
}

View file

@ -1,12 +1,18 @@
{pkgs, ...}: {
home.packages = with pkgs; [
heroic
(pkgs.prismlauncher.override {
jdks = [
pkgs.temurin-bin-21
pkgs.temurin-bin-8
pkgs.temurin-bin-17
];
})
];
{
pkgs,
config,
lib,
...
}: {
config = lib.mkIf config.myModules.games.enable {
home.packages = [
(pkgs.prismlauncher.override {
jdks = [
pkgs.temurin-bin-21
pkgs.temurin-bin-8
pkgs.temurin-bin-17
];
})
];
};
}

View file

@ -15,6 +15,10 @@
fuzzel.enable = true;
swaylock.enable = true;
waybar.enable = true;
foot.enable = true;
};
services = {
mako.enable = true;
swayidle.enable = true;
polkit-gnome.enable = true;
@ -29,6 +33,13 @@
];
input = {
keyboard.numlock = true;
warp-mouse-to-focus.enable = true;
focus-follows-mouse = {
enable = true;
max-scroll-amount = "0%";
};
keyboard = {
xkb = {
layout = "cz";
@ -63,7 +74,7 @@
layout = {
gaps = 8;
default-column-width = {proportion = 1;};
default-column-width = {proportion = 1.0;};
preset-column-widths = [
{proportion = 0.33333;}
@ -91,16 +102,6 @@
}
];
input = {
keyboard.numlock = true;
warp-mouse-to-focus.enable = true;
focus-follows-mouse = {
enable = true;
max-scroll-amount = "0%";
};
};
binds = {
"Mod+Q".action.close-window = [];
"Mod+Return".action.spawn = ["foot"];

View file

@ -11,11 +11,6 @@
cursorline = true;
color-modes = true;
indent = {
tab-width = 2;
unit = "\t";
};
lsp = {
display-inlay-hints = true;
display-messages = true;

View file

@ -0,0 +1,5 @@
{
imports = [
./shell.nix
];
}

View file

@ -1,6 +1,7 @@
{
pkgs,
device-name,
inputs,
...
}: {
home.packages = with pkgs; [
@ -33,7 +34,7 @@
nushell = {
enable = true;
extraConfig = builtins.readFile "config.nu";
extraConfig = builtins.readFile ./config.nu;
settings = {
show_banner = false;