Compare commits

...
5 Commits
Author SHA1 Message Date
snurm 38e15dc779 update 2026-10-10 23:43:02 +02:00
snurm f55767ef6b update 2026-09-25 20:32:18 +02:00
snurm 3dfc69537c add vesktop 2026-09-01 14:27:58 +02:00
snurm 31c7f05ff1 add vesktop 2026-09-01 14:26:31 +02:00
snurm 73f9104b24 add various programs 2026-08-31 21:56:26 +02:00
19 changed files with 119 additions and 41 deletions

No files matched your search

+7 -8
View File
@@ -1,12 +1,11 @@
# DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file.
# Use `nix run .#write-flake` to regenerate it.
{ {
description = "A simple NixOS flake";
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules); outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
inputs = { inputs = {
# NixOS official package source, using the nixos-26.05 branch here flake-file.url = "github:vic/flake-file";
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
helium-browser = { helium-browser = {
url = "github:schembriaiden/helium-browser-nix-flake"; url = "github:schembriaiden/helium-browser-nix-flake";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -15,12 +14,12 @@
url = "github:nix-community/home-manager/release-26.05"; url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
import-tree.url = "github:vic/import-tree";
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim = { nixvim = {
url = "github:nix-community/nixvim/nixos-26.05"; url = "github:nix-community/nixvim/nixos-26.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
flake-parts.url = "github:hercules-ci/flake-parts";
flake-file.url = "github:vic/flake-file";
import-tree.url = "github:vic/import-tree";
}; };
} }
@@ -1,11 +0,0 @@
{ inputs, ... }: {
flake.modules.nixos.nixos-desktop = {
imports =
with inputs.self.modules.nixos;
with inputs.self.factory;
[
system-desktop
i18n-de
];
};
}
@@ -0,0 +1,5 @@
{
flake.modules.nixos.nixos-desktop = {
networking.hostName = "nixos-desktop";
};
}
@@ -1,14 +1,16 @@
{ inputs, ... }: { { inputs, ... }: {
flake.modules.nixos.nixos-desktop = { config, ... } : { flake.modules.nixos.nixos-desktop = {
imports = with inputs.self.modules.nixos; [ imports = with inputs.self.modules.nixos; [
snurm snurm
steam
]; ];
home-manager.users.snurm = { config, ... }: { home-manager.users.snurm = {
imports = imports =
with inputs.self.modules.homeManager; with inputs.self.modules.homeManager;
with inputs.self.factory; with inputs.self.factory;
[ [
vesktop
]; ];
}; };
}; };
+4 -1
View File
@@ -46,7 +46,7 @@ hl.monitor({
-- Set programs that you use -- Set programs that you use
local terminal = "kitty" local terminal = "kitty"
local fileManager = "dolphin" local fileManager = "dolphin"
local menu = "wofi --show drun" local menu = "rofi -show drun"
local screenshot = "grim -g \"$(slurp)\" - | wl-copy" local screenshot = "grim -g \"$(slurp)\" - | wl-copy"
------------------- -------------------
@@ -263,6 +263,7 @@ local mainMod = "SUPER" -- Sets "Windows" key as main modifier
-- Example binds, see https://wiki.hypr.land/Configuring/Basics/Binds/ for more -- Example binds, see https://wiki.hypr.land/Configuring/Basics/Binds/ for more
hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd(terminal)) hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd(terminal))
hl.bind(mainMod .. " + T", hl.dsp.exec_cmd("kitty"))
local closeWindowBind = hl.bind(mainMod .. " + C", hl.dsp.window.close()) local closeWindowBind = hl.bind(mainMod .. " + C", hl.dsp.window.close())
-- closeWindowBind:set_enabled(false) -- closeWindowBind:set_enabled(false)
hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'")) hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'"))
@@ -283,6 +284,8 @@ hl.bind(mainMod .. " + SHIFT + L", hl.dsp.window.move({ direction = "right" }))
hl.bind(mainMod .. " + SHIFT + K", hl.dsp.window.move({ direction = "up" })) hl.bind(mainMod .. " + SHIFT + K", hl.dsp.window.move({ direction = "up" }))
hl.bind(mainMod .. " + SHIFT + J", hl.dsp.window.move({ direction = "down" })) hl.bind(mainMod .. " + SHIFT + J", hl.dsp.window.move({ direction = "down" }))
-- fullscreen
hl.bind(mainMod .. " + SHIFT + F", hl.dsp.window.fullscreen({ mode = "fullscreen", action = "toggle" }))
-- Switch workspaces with mainMod + [0-9] -- Switch workspaces with mainMod + [0-9]
-- Move active window to a workspace with mainMod + SHIFT + [0-9] -- Move active window to a workspace with mainMod + SHIFT + [0-9]
for i = 1, 10 do for i = 1, 10 do
+6
View File
@@ -3,9 +3,15 @@
programs.hyprland.enable = true; programs.hyprland.enable = true;
environment.sessionVariables.NIXOS_OZONE_WL = "1"; environment.sessionVariables.NIXOS_OZONE_WL = "1";
#maybe remove
home-manager.sharedModules = [ home-manager.sharedModules = [
inputs.self.modules.homeManager.hyprland inputs.self.modules.homeManager.hyprland
]; ];
imports =
with inputs.self.modules.nixos;
[
screenshot
];
}; };
flake.modules.homeManager.hyprland = { pkgs, ... }: { flake.modules.homeManager.hyprland = { pkgs, ... }: {
+7
View File
@@ -0,0 +1,7 @@
{
flake.modules.homeManager.keepassxc = {
programs.keepassxc = {
enable = true;
};
};
}
+1 -8
View File
@@ -5,16 +5,9 @@
enableGitIntegration = true; enableGitIntegration = true;
font = { font = {
name = "JetBrains Mono"; name = "JetBrains Mono";
size = 10; size = 20;
}; };
shellIntegration.enableZshIntegration = true; shellIntegration.enableZshIntegration = true;
settings = {
confirm_os_window_close = 0;
enable_auto_bell = false;
mouse_hide_wait = "-1.0";
background_opacity = "0.5";
background_blur = 5;
};
}; };
}; };
} }
+17
View File
@@ -11,6 +11,23 @@
programs.nixvim = { programs.nixvim = {
enable = true; enable = true;
opts = {
number = true;
relativenumber = true;
shiftwidth = 2;
tabstop = 2;
scrolloff = 20;
cursorline = true;
clipboard = "unnamedplus";
};
keymaps = [
{
mode = [ "" "i" "t" ];
key = "fj";
action = "<ESC>";
}
];
}; };
home.sessionVariables.EDITOR = "nvim"; home.sessionVariables.EDITOR = "nvim";
+15
View File
@@ -0,0 +1,15 @@
{
flake.modules.homeManager.rofi = { pkgs, ... }: {
programs.rofi = {
enable = true;
modes = [
"combi"
"drun"
"calc"
];
plugins = [
pkgs.rofi-calc
];
};
};
}
+8
View File
@@ -0,0 +1,8 @@
{
flake.modules.nixos.screenshot = { pkgs, ... }: {
environment.systemPackages = with pkgs; [
slurp
grim
];
};
}
+13
View File
@@ -0,0 +1,13 @@
{
flake.modules.nixos.steam = { pkgs, ... }: {
programs.steam = {
enable = true;
extraCompatPackages = [
pkgs.proton-ge-bin
];
protontricks = {
enable = true;
};
};
};
}
+7
View File
@@ -0,0 +1,7 @@
{
flake.modules.homeManager.vesktop = {
programs.vesktop = {
enable = true;
};
};
}
-3
View File
@@ -7,9 +7,6 @@
}; };
flake.modules.homeManager.zsh = { pkgs, ... }: { flake.modules.homeManager.zsh = { pkgs, ... }: {
imports = with inputs.self.modules.homeManager; [
];
programs.zsh = { programs.zsh = {
enable = true; enable = true;
+15
View File
@@ -0,0 +1,15 @@
{
flake.modules.nixos.nerdfonts = { pkgs, ... }: {
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
nerd-fonts.jetbrains-mono
];
fontDir.enable = true;
};
};
flake.modules.homeManager.nerdfonts = {
gtk.font.name = "JetBrainsMono";
};
}
+7
View File
@@ -0,0 +1,7 @@
{
flake.modules.nixos.networkmanager = {
networking.networkmanager = {
enable = true;
};
};
}
+1 -1
View File
@@ -1,7 +1,7 @@
{ inputs, ... }: { { inputs, ... }: {
flake-file.inputs = { flake-file.inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
}; };
flake.modules.nixos.system-base = { pkgs, ... }: { flake.modules.nixos.system-base = { pkgs, ... }: {
+1
View File
@@ -18,6 +18,7 @@
[ [
system-base system-base
rofi
kitty kitty
zsh zsh
+1 -7
View File
@@ -11,13 +11,6 @@
(self.factory.user "snurm" true) (self.factory.user "snurm" true)
{ {
nixos.snurm = { nixos.snurm = {
imports =
with self.modules.nixos;
with self.factory;
[
];
users.users.snurm.extraGroups = [ users.users.snurm.extraGroups = [
"networkmanager" "networkmanager"
]; ];
@@ -28,6 +21,7 @@
snurm-git snurm-git
btop btop
nixvim nixvim
keepassxc
]; ];
}; };
} }