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
- [ ] Enabling nvidia graphics and disabling it
- [ ] 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 {
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-resume = brightnessctl -r # monitor backlight restore.
}
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
listener {
timeout = 180 # 3min
timeout = 120 # 3min
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 = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
@ -39,6 +39,7 @@
...
} @ inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;

View File

@ -1,8 +1,8 @@
{
inputs,
config,
pkgs,
pkgs-stable,
lib,
...
}: {
imports = [
@ -70,24 +70,24 @@
services.printing.enable = true;
services.printing.drivers = with pkgs; [gutenprint hplip splix];
hardware.printers = {
ensurePrinters = [
{
name = "HP_psc_1200_series";
location = "Home";
deviceUri = "usb://HP/psc%201200%20series?serial=UA51SGB35WT0&interface=1";
model = "HP_psc_1200_series.ppd";
ppdOptions = {
PageSize = "A4";
};
}
];
ensureDefaultPrinter = "HP_psc_1200_series";
#ensurePrinters = [
# {
# name = "HP_psc_1200_series";
# location = "Home";
# deviceUri = "usb://HP/psc%201200%20series?serial=UA51SGB35WT0&interface=1";
# model = "HP_psc_1200_series.ppd";
# ppdOptions = {
# PageSize = "A4";
# };
# }
#];
#ensureDefaultPrinter = "HP_psc_1200_series";
};
# Scanning
hardware.sane.enable = true;
services.ipp-usb.enable= true;
hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ];
services.ipp-usb.enable = true;
hardware.sane.extraBackends = [pkgs.hplipWithPlugin];
# Set your time zone.
time.timeZone = "Europe/Prague";
@ -114,8 +114,17 @@
monaspace
];
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.displayManager = {
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.xserver.desktopManager.gnome.enable = true;
#environment.gnome.excludePackages = with pkgs; [
@ -160,6 +169,7 @@
enable = true;
xwayland.enable = true;
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
portalPackage = pkgs.xdg-desktop-portal-hyprland;
};
virtualisation.libvirtd.enable = true;
@ -225,6 +235,7 @@
};
programs.kdeconnect.enable = true;
programs.wireshark.enable = true;
programs.steam = {
enable = true;
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:
# $ 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.
# wget
]);
(sddm-astronaut.override {
themeConfig = {
ScreenWidth = 1920;
ScreenHeight = 1080;
PartialBlur = false;
};
})
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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