Compare commits

..

No commits in common. "f6be350db4d274dadecd71e4f4b0c3fcfebc54e0" and "d7d5b44f1350ea0aa10cd08da186fe81007fd61c" have entirely different histories.

12 changed files with 33 additions and 81 deletions

View File

@ -8,4 +8,3 @@
- [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 = 90 # 1.5min. timeout = 150 # 2.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 = 120 # 3min timeout = 180 # 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 = "My highly sofisticated and complicated flake"; description = "A very basic flake";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
@ -39,7 +39,6 @@
... ...
} @ 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,17 +114,8 @@
monaspace monaspace
]; ];
services.displayManager = { services.displayManager.sddm.enable = true;
defaultSession = "hyprland"; services.displayManager.sddm.wayland.enable = true;
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; [
@ -169,7 +160,6 @@
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;
@ -235,7 +225,6 @@
}; };
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
@ -248,17 +237,10 @@
# 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,9 +21,6 @@
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;
@ -33,8 +30,6 @@
stylix.targets = { stylix.targets = {
dunst.enable = true; dunst.enable = true;
kde.enable = true;
gtk.enable = true;
waybar = { waybar = {
enableCenterBackColors = false; enableCenterBackColors = false;
@ -117,10 +112,8 @@
exec-once = [ exec-once = [
"discord --start-minimized" "discord --start-minimized"
"vesktop --start-minimized" "vesktop --start-minimized"
"${pkgs.ferdium}/bin/ferdium --minimized" "ferdium --minimized"
"${pkgs.plasma5Packages.kdeconnect-kde}/bin/kdeconnect-indicator" "kdeconnect-indicator"
"systemctl --user start hyprpolkitagent"
#"swww-daemon --format xrgb" #"swww-daemon --format xrgb"
#"swww ../../aurora_borealis.png" #"swww ../../aurora_borealis.png"
"hypridle" "hypridle"
@ -139,13 +132,14 @@
#"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" = "${pkgs.librewolf}/bin/librewolf"; "$browser" = "librewolf";
animations = { animations = {
"enabled" = "yes"; "enabled" = "yes";
@ -191,8 +185,8 @@
]; ];
bindel = [ bindel = [
",XF86AudioLowerVolume, exec, swayosd-client --output-volume -5" ",XF86AudioLowerVolume, exec, swayosd-client --output-volume -1"
",XF86AudioRaiseVolume, exec, swayosd-client --output-volume 5" ",XF86AudioRaiseVolume, exec, swayosd-client --output-volume 1"
# 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,9 +3,6 @@
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-wayland pkgs.rofi
]; ];
programs.rofi = { programs.rofi = {
@ -19,7 +19,6 @@
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,8 +12,6 @@
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;
@ -28,7 +26,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,13 +30,11 @@
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,9 +16,6 @@
nmap nmap
netcat-openbsd netcat-openbsd
bettercap bettercap
hashcat
tcpdump
sqlmap
]; ];
}; };
} }

View File

@ -5,7 +5,6 @@
}: { }: {
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
@ -16,7 +15,6 @@
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; [
@ -37,8 +35,9 @@
"steam" "steam"
"steam-unwrapped" "steam-unwrapped"
"gitkraken" "enhancer-for-youtube"
"gitkraken"
# VSCODE # VSCODE
"vscode" "vscode"
"vscode-extension-github-codespaces" "vscode-extension-github-codespaces"

View File

@ -11,15 +11,9 @@
config = lib.mkIf config.vscode.enable { config = lib.mkIf config.vscode.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
vscode vscode
gopls python3
]; ];
home.sessionVariables = {
GOOS = "linux";
GOARCH = "amd64";
GOPATH = "$HOME/.local/share/go";
};
programs.vscode = { programs.vscode = {
enable = true; enable = true;
@ -52,10 +46,6 @@
"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" = {