Compare commits

...

5 Commits

Author SHA1 Message Date
f6be350db4 Cleanup, fixes 2024-11-19 09:50:32 +01:00
f35cd3ac87 cleanup 2024-11-16 20:32:42 +01:00
84df8e215f vscode, hacking, hyprland fix 2024-11-16 20:32:10 +01:00
777427e1cf rofi-wayland, hypridle, dolphin package 2024-11-16 20:31:24 +01:00
f55e945bfd hacking 2024-11-15 21:04:07 +01:00
12 changed files with 81 additions and 33 deletions

View File

@ -8,3 +8,4 @@
- [x] Stylix theming - [x] Stylix theming
- [ ] Enabling nvidia graphics and disabling it - [ ] Enabling nvidia graphics and disabling it
- [ ] Modularity connected via configuration.nix file with home manager (disable gnome, gnome configuration will be disabled too) - [ ] Modularity connected via configuration.nix file with home manager (disable gnome, gnome configuration will be disabled too)
- [ ] Rofi theme and other themes, where are colors setup declaratively

View File

@ -5,14 +5,14 @@ general {
} }
listener { listener {
timeout = 150 # 2.5min. timeout = 90 # 1.5min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore. on-resume = brightnessctl -r # monitor backlight restore.
} }
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight. # turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
listener { listener {
timeout = 180 # 3min timeout = 120 # 3min
on-timeout = loginctl lock-session # lock screen when timeout has passed on-timeout = loginctl lock-session # lock screen when timeout has passed
} }

View File

@ -1,5 +1,5 @@
{ {
description = "A very basic flake"; description = "My highly sofisticated and complicated flake";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
@ -39,6 +39,7 @@
... ...
} @ inputs: let } @ inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;

View File

@ -1,8 +1,8 @@
{ {
inputs, inputs,
config,
pkgs, pkgs,
pkgs-stable, pkgs-stable,
lib,
... ...
}: { }: {
imports = [ imports = [
@ -70,24 +70,24 @@
services.printing.enable = true; services.printing.enable = true;
services.printing.drivers = with pkgs; [gutenprint hplip splix]; services.printing.drivers = with pkgs; [gutenprint hplip splix];
hardware.printers = { hardware.printers = {
ensurePrinters = [ #ensurePrinters = [
{ # {
name = "HP_psc_1200_series"; # name = "HP_psc_1200_series";
location = "Home"; # location = "Home";
deviceUri = "usb://HP/psc%201200%20series?serial=UA51SGB35WT0&interface=1"; # deviceUri = "usb://HP/psc%201200%20series?serial=UA51SGB35WT0&interface=1";
model = "HP_psc_1200_series.ppd"; # model = "HP_psc_1200_series.ppd";
ppdOptions = { # ppdOptions = {
PageSize = "A4"; # PageSize = "A4";
}; # };
} # }
]; #];
ensureDefaultPrinter = "HP_psc_1200_series"; #ensureDefaultPrinter = "HP_psc_1200_series";
}; };
# Scanning # Scanning
hardware.sane.enable = true; hardware.sane.enable = true;
services.ipp-usb.enable= true; services.ipp-usb.enable = true;
hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ]; hardware.sane.extraBackends = [pkgs.hplipWithPlugin];
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Prague"; time.timeZone = "Europe/Prague";
@ -114,8 +114,17 @@
monaspace monaspace
]; ];
services.displayManager.sddm.enable = true; services.displayManager = {
services.displayManager.sddm.wayland.enable = true; defaultSession = "hyprland";
sddm = {
enable = true;
wayland.enable = true;
theme = "sddm-astronaut-theme";
package = lib.mkDefault pkgs.kdePackages.sddm;
extraPackages = [pkgs.sddm-astronaut pkgs.kdePackages.qtvirtualkeyboard];
};
};
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
#services.xserver.desktopManager.gnome.enable = true; #services.xserver.desktopManager.gnome.enable = true;
#environment.gnome.excludePackages = with pkgs; [ #environment.gnome.excludePackages = with pkgs; [
@ -160,6 +169,7 @@
enable = true; enable = true;
xwayland.enable = true; xwayland.enable = true;
package = inputs.hyprland.packages."${pkgs.system}".hyprland; package = inputs.hyprland.packages."${pkgs.system}".hyprland;
portalPackage = pkgs.xdg-desktop-portal-hyprland;
}; };
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
@ -225,6 +235,7 @@
}; };
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
programs.wireshark.enable = true;
programs.steam = { programs.steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
@ -237,10 +248,17 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = (with pkgs; [ environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget # wget
]); (sddm-astronaut.override {
themeConfig = {
ScreenWidth = 1920;
ScreenHeight = 1080;
PartialBlur = false;
};
})
];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.

View File

@ -21,6 +21,9 @@
rofi.enable = lib.mkDefault true; rofi.enable = lib.mkDefault true;
wlogout.enable = lib.mkDefault true; wlogout.enable = lib.mkDefault true;
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
services.network-manager-applet.enable = true; services.network-manager-applet.enable = true;
services.dunst.enable = true; services.dunst.enable = true;
@ -30,6 +33,8 @@
stylix.targets = { stylix.targets = {
dunst.enable = true; dunst.enable = true;
kde.enable = true;
gtk.enable = true;
waybar = { waybar = {
enableCenterBackColors = false; enableCenterBackColors = false;
@ -112,8 +117,10 @@
exec-once = [ exec-once = [
"discord --start-minimized" "discord --start-minimized"
"vesktop --start-minimized" "vesktop --start-minimized"
"ferdium --minimized" "${pkgs.ferdium}/bin/ferdium --minimized"
"kdeconnect-indicator" "${pkgs.plasma5Packages.kdeconnect-kde}/bin/kdeconnect-indicator"
"systemctl --user start hyprpolkitagent"
#"swww-daemon --format xrgb" #"swww-daemon --format xrgb"
#"swww ../../aurora_borealis.png" #"swww ../../aurora_borealis.png"
"hypridle" "hypridle"
@ -132,14 +139,13 @@
#"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH" #"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH"
#"dbus-update-activation-environment --systemd --all # for XDPH" #"dbus-update-activation-environment --systemd --all # for XDPH"
#"systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH" #"systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH"
#"$scrPath/polkitkdeauth.sh # authentication dialogue for GUI apps"
]; ];
"$mod" = "SUPER"; "$mod" = "SUPER";
"$term" = "${pkgs.kitty}/bin/kitty"; "$term" = "${pkgs.kitty}/bin/kitty";
"$editor" = "${pkgs.vscode}/bin/code"; "$editor" = "${pkgs.vscode}/bin/code";
"$file" = "dolphin"; "$file" = "dolphin";
"$browser" = "librewolf"; "$browser" = "${pkgs.librewolf}/bin/librewolf";
animations = { animations = {
"enabled" = "yes"; "enabled" = "yes";
@ -185,8 +191,8 @@
]; ];
bindel = [ bindel = [
",XF86AudioLowerVolume, exec, swayosd-client --output-volume -1" ",XF86AudioLowerVolume, exec, swayosd-client --output-volume -5"
",XF86AudioRaiseVolume, exec, swayosd-client --output-volume 1" ",XF86AudioRaiseVolume, exec, swayosd-client --output-volume 5"
# Brightness # Brightness
",XF86MonBrightnessUp, exec, swayosd-client --brightness raise" ",XF86MonBrightnessUp, exec, swayosd-client --brightness raise"
",XF86MonBrightnessDown, exec, swayosd-client --brightness lower" ",XF86MonBrightnessDown, exec, swayosd-client --brightness lower"

View File

@ -3,6 +3,9 @@
hyprlock hyprlock
hyprpicker hyprpicker
hypridle hypridle
hyprpolkitagent
kdePackages.dolphin
dunst dunst
libnotify libnotify

View File

@ -10,7 +10,7 @@
config = lib.mkIf config.rofi.enable { config = lib.mkIf config.rofi.enable {
home.packages = [ home.packages = [
pkgs.rofi pkgs.rofi-wayland
]; ];
programs.rofi = { programs.rofi = {
@ -19,6 +19,7 @@
location = "center"; location = "center";
pass = {}; pass = {};
font = lib.mkDefault "JetBrainsMono NF 14"; font = lib.mkDefault "JetBrainsMono NF 14";
package = pkgs.rofi-wayland;
theme = let theme = let
inherit (config.lib.formats.rasi) mkLiteral; inherit (config.lib.formats.rasi) mkLiteral;
in { in {

View File

@ -12,6 +12,8 @@
programming.enable = true; programming.enable = true;
games.enable = true; games.enable = true;
gtk.enable = true;
programs.bash = { programs.bash = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
@ -26,7 +28,7 @@
s = "kitten ssh"; s = "kitten ssh";
diff = "diff --color"; diff = "diff --color";
cd = "z"; cd = "z";
arduino-cli = "arduino-ports-enable ; arduino-cli"; #arduino-cli = "arduino-ports-enable ; arduino-cli";
respawn = "clear; pfetch"; respawn = "clear; pfetch";
l = "eza -lh --icons=auto"; l = "eza -lh --icons=auto";
mkdir = "mkdir -p"; mkdir = "mkdir -p";

View File

@ -30,11 +30,13 @@
spotify spotify
spotube spotube
inkscape inkscape
gnome-disk-utility
]) ])
++ (with pkgs-stable; [ ++ (with pkgs-stable; [
loupe loupe
simple-scan simple-scan
vesktop vesktop
evince
]); ]);
}; };
} }

View File

@ -16,6 +16,9 @@
nmap nmap
netcat-openbsd netcat-openbsd
bettercap bettercap
hashcat
tcpdump
sqlmap
]; ];
}; };
} }

View File

@ -5,6 +5,7 @@
}: { }: {
imports = [ imports = [
./programming/programming.nix ./programming/programming.nix
./hacking/hacking.nix
./games.nix ./games.nix
./terminal_tools.nix ./terminal_tools.nix
./applications.nix ./applications.nix
@ -15,6 +16,7 @@
games.enable = lib.mkDefault false; games.enable = lib.mkDefault false;
firefox.enable = lib.mkDefault true; firefox.enable = lib.mkDefault true;
applications.enable = lib.mkDefault true; applications.enable = lib.mkDefault true;
hacking.enable = lib.mkDefault true;
#programs.neovim.enable = true; #programs.neovim.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -35,9 +37,8 @@
"steam" "steam"
"steam-unwrapped" "steam-unwrapped"
"enhancer-for-youtube"
"gitkraken" "gitkraken"
# VSCODE # VSCODE
"vscode" "vscode"
"vscode-extension-github-codespaces" "vscode-extension-github-codespaces"

View File

@ -11,9 +11,15 @@
config = lib.mkIf config.vscode.enable { config = lib.mkIf config.vscode.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
vscode vscode
python3 gopls
]; ];
home.sessionVariables = {
GOOS = "linux";
GOARCH = "amd64";
GOPATH = "$HOME/.local/share/go";
};
programs.vscode = { programs.vscode = {
enable = true; enable = true;
@ -46,6 +52,10 @@
"editor.defaultFormatter" = "esbenp.prettier-vscode"; "editor.defaultFormatter" = "esbenp.prettier-vscode";
}; };
"python.defaultInterpreterPath" = "${pkgs.python3}"; "python.defaultInterpreterPath" = "${pkgs.python3}";
"go.alternateTools" = {
"go-langserver" = "${pkgs.gopls}/bin/gopls";
};
"gopls" = {"ui.diagnostic.staticcheck" = true;};
"nix.serverPath" = "nixd"; "nix.serverPath" = "nixd";
"nix.enableLanguageServer" = true; "nix.enableLanguageServer" = true;
"nix.serverSettings" = { "nix.serverSettings" = {