Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38e15dc779 | ||
|
|
f55767ef6b | ||
|
|
3dfc69537c | ||
|
|
31c7f05ff1 | ||
|
|
73f9104b24 |
No files matched your search
@@ -1,26 +1,25 @@
|
|||||||
|
# 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 = {
|
||||||
|
flake-file.url = "github:vic/flake-file";
|
||||||
inputs = {
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
# NixOS official package source, using the nixos-26.05 branch here
|
helium-browser = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
url = "github:schembriaiden/helium-browser-nix-flake";
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
helium-browser = {
|
};
|
||||||
url = "github:schembriaiden/helium-browser-nix-flake";
|
home-manager = {
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
};
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
home-manager = {
|
};
|
||||||
url = "github:nix-community/home-manager/release-26.05";
|
import-tree.url = "github:vic/import-tree";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
verbose = true;
|
verbose = true;
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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, ... }: {
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.keepassxc = {
|
||||||
|
programs.keepassxc = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -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";
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.rofi = { pkgs, ... }: {
|
||||||
|
programs.rofi = {
|
||||||
|
enable = true;
|
||||||
|
modes = [
|
||||||
|
"combi"
|
||||||
|
"drun"
|
||||||
|
"calc"
|
||||||
|
];
|
||||||
|
plugins = [
|
||||||
|
pkgs.rofi-calc
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.screenshot = { pkgs, ... }: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
slurp
|
||||||
|
grim
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.steam = { pkgs, ... }: {
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
extraCompatPackages = [
|
||||||
|
pkgs.proton-ge-bin
|
||||||
|
];
|
||||||
|
protontricks = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.vesktop = {
|
||||||
|
programs.vesktop = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.networkmanager = {
|
||||||
|
networking.networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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, ... }: {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
[
|
[
|
||||||
system-base
|
system-base
|
||||||
|
|
||||||
|
rofi
|
||||||
kitty
|
kitty
|
||||||
|
|
||||||
zsh
|
zsh
|
||||||
|
|||||||
@@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user