Compare commits
10 Commits
1fbed0bf8a
...
c11bc57eb2
Author | SHA1 | Date | |
---|---|---|---|
c11bc57eb2 | |||
08ad72c933 | |||
bb9bb49940 | |||
70d37cc0e1 | |||
f0538e191d | |||
40332b46df | |||
9cc4631fa6 | |||
3c0f25d61f | |||
87ff39bb86 | |||
70cec6f3c6 |
14
flake.lock
generated
14
flake.lock
generated
@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709204054,
|
"lastModified": 1709485962,
|
||||||
"narHash": "sha256-U1idK0JHs1XOfSI1APYuXi4AEADf+B+ZU4Wifc0pBHk=",
|
"narHash": "sha256-rmFB4uE10+LJbcVE4ePgiuHOBlUIjQOeZt4VQVJTU8M=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "2f3367769a93b226c467551315e9e270c3f78b15",
|
"rev": "d579633ff9915a8f4058d5c439281097e92380a8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -22,16 +22,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709237383,
|
"lastModified": 1709309926,
|
||||||
"narHash": "sha256-cy6ArO4k5qTx+l5o+0mL9f5fa86tYUX3ozE1S+Txlds=",
|
"narHash": "sha256-VZFBtXGVD9LWTecGi6eXrE0hJ/mVB3zGUlHImUs2Qak=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1536926ef5621b09bba54035ae2bb6d806d72ac8",
|
"rev": "79baff8812a0d68e24a836df0a364c678089e2c7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-23.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
description = "Torjus nixos config flake";
|
description = "Torjus nixos config flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
# nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -11,10 +11,12 @@
|
|||||||
./programs/tmux
|
./programs/tmux
|
||||||
./programs/dunst
|
./programs/dunst
|
||||||
./programs/kitty
|
./programs/kitty
|
||||||
|
./programs/rofi
|
||||||
./scripts
|
./scripts
|
||||||
./zsh
|
./zsh
|
||||||
./packages
|
./packages
|
||||||
./hyprland
|
./hyprland
|
||||||
|
./i3
|
||||||
];
|
];
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
|
11
home/hyprland/cursor.nix
Normal file
11
home/hyprland/cursor.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
home.pointerCursor = {
|
||||||
|
gtk.enable = true;
|
||||||
|
# x11.enable = true;
|
||||||
|
package = pkgs.catppuccin-cursors.macchiatoLavender;
|
||||||
|
name = "Catppuccin-Macchiato-Lavender-Cursors";
|
||||||
|
size = 32;
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk.enable = true;
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
{ imports = [ ./hyprland.nix ./waybar.nix ./xdg.nix ]; }
|
{ imports = [ ./hyprland.nix ./waybar.nix ./xdg.nix ./cursor.nix ]; }
|
||||||
|
@ -4,13 +4,15 @@
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
cliphist
|
cliphist
|
||||||
dunst
|
dunst
|
||||||
hyprlock
|
# hyprlock
|
||||||
hyprpaper
|
hyprpaper
|
||||||
rofi-wayland
|
rofi-wayland
|
||||||
slurp
|
slurp
|
||||||
swww
|
swww
|
||||||
waybar
|
waybar
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
catppuccin-cursors.macchiatoLavender
|
||||||
|
bibata-cursors
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
@ -89,14 +91,18 @@
|
|||||||
|
|
||||||
bindr = [
|
bindr = [
|
||||||
# mumble ptt release
|
# mumble ptt release
|
||||||
",code:202,exec,mumble rpc stoptalking"
|
# ",code:202,exec,mumble rpc stoptalking"
|
||||||
|
",code:202,exec,pamixer --source 63 -m"
|
||||||
];
|
];
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
# term
|
# term
|
||||||
"$mainMod,Return,exec,$term"
|
"$mainMod,Return,exec,$term"
|
||||||
|
|
||||||
# rofi
|
# rofi
|
||||||
"$mainMod,D,exec,rofi -show drun"
|
"$mainMod,D,exec,rofi-launcher"
|
||||||
|
"$mainMod,P,exec,rofi-rbw"
|
||||||
|
|
||||||
# hyprland
|
# hyprland
|
||||||
"$mainMod,Q,killactive,"
|
"$mainMod,Q,killactive,"
|
||||||
"CTRLALT,Delete,exit,"
|
"CTRLALT,Delete,exit,"
|
||||||
@ -119,7 +125,8 @@
|
|||||||
"$shiftMainMod,o,exec, hl-no-opacity"
|
"$shiftMainMod,o,exec, hl-no-opacity"
|
||||||
|
|
||||||
# mumble ptt click
|
# mumble ptt click
|
||||||
",code:202,exec,mumble rpc starttalking"
|
# ",code:202,exec,mumble rpc starttalking"
|
||||||
|
",code:202,exec,pamixer --source 63 -u"
|
||||||
|
|
||||||
] ++ (builtins.concatLists (builtins.genList
|
] ++ (builtins.concatLists (builtins.genList
|
||||||
(x:
|
(x:
|
||||||
@ -128,12 +135,11 @@
|
|||||||
in
|
in
|
||||||
[
|
[
|
||||||
"$mainMod, ${ws}, workspace, ${toString (x + 1)}"
|
"$mainMod, ${ws}, workspace, ${toString (x + 1)}"
|
||||||
"ALT, ${ws}, workspace, ${toString (x + 1)}"
|
|
||||||
]) 10));
|
]) 10));
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"waybar"
|
"waybar"
|
||||||
"hyprpaper"
|
"hyprpaper"
|
||||||
"easy-effects --gapplication-service"
|
"easyeffects --gapplication-service"
|
||||||
# "dunst"
|
# "dunst"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
32
home/i3/default.nix
Normal file
32
home/i3/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
mod = "Mod4";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
xsession.windowManager.i3 = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
modifier = mod;
|
||||||
|
|
||||||
|
keybindings = lib.mkOptionDefault {
|
||||||
|
"${mod}+Enter" = "exec kitty";
|
||||||
|
|
||||||
|
# Focus
|
||||||
|
"${mod}+j" = "focus left";
|
||||||
|
"${mod}+k" = "focus down";
|
||||||
|
"${mod}+l" = "focus up";
|
||||||
|
"${mod}+semicolon" = "focus right";
|
||||||
|
|
||||||
|
# Move
|
||||||
|
"${mod}+Shift+j" = "move left";
|
||||||
|
"${mod}+Shift+k" = "move down";
|
||||||
|
"${mod}+Shift+l" = "move up";
|
||||||
|
"${mod}+Shift+semicolon" = "move right";
|
||||||
|
|
||||||
|
# My multi monitor setup
|
||||||
|
"${mod}+m" = "move workspace to output DP-2";
|
||||||
|
"${mod}+Shift+m" = "move workspace to output DP-5";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -11,14 +11,18 @@
|
|||||||
ffmpeg
|
ffmpeg
|
||||||
file
|
file
|
||||||
go-task
|
go-task
|
||||||
|
glib
|
||||||
jq
|
jq
|
||||||
kitty
|
kitty
|
||||||
|
kubectl
|
||||||
ncdu
|
ncdu
|
||||||
|
nwg-look
|
||||||
mumble
|
mumble
|
||||||
obs-studio
|
obs-studio
|
||||||
pamixer
|
pamixer
|
||||||
pinentry
|
pinentry
|
||||||
pre-commit
|
pre-commit
|
||||||
|
pulseaudio
|
||||||
pulsemixer
|
pulsemixer
|
||||||
rbw
|
rbw
|
||||||
restic
|
restic
|
||||||
@ -26,10 +30,12 @@
|
|||||||
rofi-rbw-wayland
|
rofi-rbw-wayland
|
||||||
spotify
|
spotify
|
||||||
spicetify-cli
|
spicetify-cli
|
||||||
|
talosctl
|
||||||
|
|
||||||
steam
|
# steam
|
||||||
steam-run
|
# steam-run
|
||||||
steamcmd
|
# steamcmd
|
||||||
|
# gamescope
|
||||||
tokei
|
tokei
|
||||||
unzip
|
unzip
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
17
home/programs/rofi/config.rasi
Normal file
17
home/programs/rofi/config.rasi
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
configuration{
|
||||||
|
modi: "run,drun,window";
|
||||||
|
icon-theme: "Oranchelo";
|
||||||
|
show-icons: true;
|
||||||
|
terminal: "alacritty";
|
||||||
|
drun-display-format: "{icon} {name}";
|
||||||
|
location: 0;
|
||||||
|
disable-history: false;
|
||||||
|
hide-scrollbar: true;
|
||||||
|
display-drun: " Apps ";
|
||||||
|
display-run: " Run ";
|
||||||
|
display-window: " Window";
|
||||||
|
display-Network: " Network";
|
||||||
|
sidebar-mode: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme "latte"
|
24
home/programs/rofi/default.nix
Normal file
24
home/programs/rofi/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ config, pkgs, ... }: {
|
||||||
|
xdg.configFile."rofi/config.rasi" = {
|
||||||
|
source = ./config.rasi;
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."rofi/macchiato.rasi" = {
|
||||||
|
source = pkgs.fetchFromGitHub
|
||||||
|
{
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "rofi";
|
||||||
|
rev = "5350da41a11814f950c3354f090b90d4674a95ce";
|
||||||
|
sha256 = "DNorfyl3C4RBclF2KDgwvQQwixpTwSRu7fIvihPN8JY=";
|
||||||
|
} + "/basic/.local/share/rofi/themes/catppuccin-macchiato.rasi";
|
||||||
|
};
|
||||||
|
xdg.configFile."rofi/latte.rasi" = {
|
||||||
|
source = pkgs.fetchFromGitHub
|
||||||
|
{
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "rofi";
|
||||||
|
rev = "5350da41a11814f950c3354f090b90d4674a95ce";
|
||||||
|
sha256 = "DNorfyl3C4RBclF2KDgwvQQwixpTwSRu7fIvihPN8JY=";
|
||||||
|
} + "/basic/.local/share/rofi/themes/catppuccin-latte.rasi";
|
||||||
|
};
|
||||||
|
}
|
@ -3,4 +3,8 @@
|
|||||||
source = ./hl-no-opacity.sh;
|
source = ./hl-no-opacity.sh;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
|
home.file.".local/bin/rofi-launcher" = {
|
||||||
|
source = ./rofi-launcher.sh;
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
8
home/scripts/rofi-launcher.sh
Normal file
8
home/scripts/rofi-launcher.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
rofi \
|
||||||
|
-show drun \
|
||||||
|
-modi run,drun,ssh \
|
||||||
|
-scroll-method 0 \
|
||||||
|
-drun-match-fields all \
|
||||||
|
-drun-display-format "{name}" \
|
||||||
|
-terminal kitty
|
@ -5,16 +5,21 @@
|
|||||||
|
|
||||||
# Bootloader stuff
|
# Bootloader stuff
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
# "quiet"
|
"quiet"
|
||||||
# "splash"
|
"splash"
|
||||||
# "rd.systemd.show_status=false"
|
"rd.systemd.show_status=false"
|
||||||
];
|
];
|
||||||
boot.loader.systemd-boot = { enable = true; };
|
|
||||||
|
boot.loader.systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
configurationLimit = 10;
|
||||||
|
};
|
||||||
|
|
||||||
boot.loader.efi = { canTouchEfiVariables = true; };
|
boot.loader.efi = { canTouchEfiVariables = true; };
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
# boot.extraModprobeConfig = ''
|
||||||
options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
|
# options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
|
||||||
'';
|
# '';
|
||||||
|
|
||||||
# Networking stuff
|
# Networking stuff
|
||||||
networking.hostName = "gunter"; # Define your hostname.
|
networking.hostName = "gunter"; # Define your hostname.
|
||||||
@ -42,7 +47,7 @@
|
|||||||
open = false;
|
open = false;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Setup hyprland
|
# Setup hyprland
|
||||||
@ -57,6 +62,8 @@
|
|||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
services.xserver.displayManager.gdm.wayland = true;
|
services.xserver.displayManager.gdm.wayland = true;
|
||||||
services.xserver.displayManager.lightdm.enable = false;
|
services.xserver.displayManager.lightdm.enable = false;
|
||||||
|
services.xserver.displayManager.startx.enable = true;
|
||||||
|
services.xserver.windowManager.i3.enable = true;
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
@ -95,6 +102,13 @@
|
|||||||
usbutils
|
usbutils
|
||||||
vim
|
vim
|
||||||
wget
|
wget
|
||||||
|
|
||||||
|
# X shit
|
||||||
|
# xorg.xorgserver
|
||||||
|
# xorg.xinit
|
||||||
|
# xorg.xf86inputevdev
|
||||||
|
# xorg.xf86inputlibinput
|
||||||
|
# xorg.xinit
|
||||||
];
|
];
|
||||||
|
|
||||||
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./steamuser.nix
|
||||||
../../system
|
../../system
|
||||||
../../home
|
../../home
|
||||||
];
|
];
|
||||||
|
19
hosts/gunter/steamuser.nix
Normal file
19
hosts/gunter/steamuser.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
environment.shells = with pkgs; [ zsh ];
|
||||||
|
|
||||||
|
services.xserver.desktopManager.xfce.enable = true;
|
||||||
|
programs.steam.enable = true;
|
||||||
|
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
|
users.users.steam = {
|
||||||
|
isNormalUser = true;
|
||||||
|
initialPassword = "steam";
|
||||||
|
home = "/home/steam";
|
||||||
|
description = "Steam user";
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
# Install some user packages
|
||||||
|
packages = with pkgs; [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user