This commit is contained in:
meml0rz
2024-11-13 01:43:09 +01:00
parent 595be1e6e2
commit 2e59194988
7 changed files with 458 additions and 421 deletions

@ -1,13 +1,21 @@
{ config, lib, pkgs, pkgs-stable, ... }:
{ {
imports = config,
[ lib,
pkgs,
pkgs-stable,
...
}:
{
imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./modules/nix/firefox.nix ./modules/nix/firefox.nix
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
networking.hostName = "poggers"; networking.hostName = "poggers";
@ -56,7 +64,6 @@
programs = { programs = {
hyprland = { hyprland = {
enable = true; enable = true;
xwayland.enable = true;
}; };
nix-ld.enable = true; nix-ld.enable = true;
}; };
@ -70,7 +77,14 @@
users.users.fabian = { users.users.fabian = {
isNormalUser = true; isNormalUser = true;
initialPassword = "1601"; initialPassword = "1601";
extraGroups = [ "wheel" "docker" "audio" "video" "dialout" "plugdev" ]; extraGroups = [
"wheel"
"docker"
"audio"
"video"
"dialout"
"plugdev"
];
}; };
environment.systemPackages = environment.systemPackages =
@ -117,7 +131,7 @@
# misc # misc
cava cava
mumble mumble
discord vesktop
# hardware & shit # hardware & shit
libplist libplist
@ -125,26 +139,31 @@
usbmuxd usbmuxd
]) ])
++ ++ (with pkgs-stable; [
(with pkgs-stable; [
]); ]);
networking = { networking = {
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [ 80 1337 8080 ]; allowedTCPPorts = [
80
1337
8080
];
}; };
}; };
security = { security = {
doas = { doas = {
enable = true; enable = true;
extraRules = [{ extraRules = [
{
users = [ "fabian" ]; users = [ "fabian" ];
noPass = true; noPass = true;
keepEnv = true; keepEnv = true;
}]; }
];
}; };
}; };
@ -166,4 +185,3 @@
system.stateVersion = "unstable"; system.stateVersion = "unstable";
} }

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
lock-false = { lock-false = {
Value = false; Value = false;
Status = "locked"; Status = "locked";
@ -9,7 +9,7 @@
Value = true; Value = true;
Status = "locked"; Status = "locked";
}; };
in in
{ {
programs = { programs = {
firefox = { firefox = {
@ -19,7 +19,7 @@
DisableTelemetry = true; DisableTelemetry = true;
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
EnableTrackingProtection = { EnableTrackingProtection = {
Value= true; Value = true;
Locked = true; Locked = true;
Cryptomining = true; Cryptomining = true;
Fingerprinting = true; Fingerprinting = true;

@ -1,8 +1,7 @@
{config, pkgs, ... }: { config, pkgs, ... }:
{ {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
xwayland.enable = true;
extraConfig = '' extraConfig = ''
windowrulev2 = opacity 0.0 override, class:^(xwaylandvideobridge)$ windowrulev2 = opacity 0.0 override, class:^(xwaylandvideobridge)$
windowrulev2 = noanim, class:^(xwaylandvideobridge)$ windowrulev2 = noanim, class:^(xwaylandvideobridge)$
@ -85,4 +84,3 @@
}; };
}; };
} }

@ -36,6 +36,14 @@
yamlls = { yamlls = {
enable = true; enable = true;
}; };
rust-analyzer = {
enable = true;
autostart = true;
};
clangd = {
enable = true;
autostart = true;
};
}; };
keymaps = { keymaps = {
silent = true; silent = true;

@ -11,7 +11,8 @@ window#waybar {
background: transparent; background: transparent;
} }
#cava.left, #cava.right { #cava.left,
#cava.right {
/* background: #25253a; */ /* background: #25253a; */
/*background: #25253a;*/ /*background: #25253a;*/
@ -31,20 +32,20 @@ window#waybar {
margin: 5px 5px; margin: 5px 5px;
padding: 8px 5px; padding: 8px 5px;
border-radius: 16px; border-radius: 16px;
color: #cba6f7 color: #cba6f7;
} }
#workspaces button { #workspaces button {
padding: 0px 5px; padding: 0px 5px;
margin: 0px 3px; margin: 0px 3px;
border-radius: 16px; border-radius: 16px;
color: transparent; color: transparent;
background: rgba(17,17,27,1); background: rgba(17, 17, 27, 1);
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
} }
#workspaces button.active { #workspaces button.active {
background-color: #89b4fa; background-color: #89b4fa;
color: #11111B; color: #11111b;
border-radius: 16px; border-radius: 16px;
min-width: 50px; min-width: 50px;
background-size: 400% 400%; background-size: 400% 400%;
@ -53,20 +54,28 @@ window#waybar {
#workspaces button:hover { #workspaces button:hover {
background-color: #f5f5f5; background-color: #f5f5f5;
color: #11111B; color: #11111b;
border-radius: 16px; border-radius: 16px;
min-width: 50px; min-width: 50px;
background-size: 400% 400%; background-size: 400% 400%;
} }
#tray, #pulseaudio, #network, #battery, #tray,
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.foward{ #pulseaudio,
#network,
#battery,
#custom-playerctl.backward,
#custom-playerctl.play,
#custom-playerctl.foward {
background: #010101; background: #010101;
font-weight: bold; font-weight: bold;
margin: 5px 0px; margin: 5px 0px;
opacity: 1; opacity: 1;
} }
#tray, #pulseaudio, #network, #battery{ #tray,
#pulseaudio,
#network,
#battery {
color: #f5f5f5; color: #f5f5f5;
border-radius: 24px 24px 24px 24px; border-radius: 24px 24px 24px 24px;
padding: 0 20px; padding: 0 20px;
@ -90,11 +99,15 @@ window#waybar {
font-size: 28px; font-size: 28px;
} }
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.foward { #custom-playerctl.backward,
#custom-playerctl.play,
#custom-playerctl.foward {
background: #010101; background: #010101;
font-size: 22px; font-size: 22px;
} }
#custom-playerctl.backward:hover, #custom-playerctl.play:hover, #custom-playerctl.foward:hover{ #custom-playerctl.backward:hover,
#custom-playerctl.play:hover,
#custom-playerctl.foward:hover {
color: #f5f5f5; color: #f5f5f5;
} }
#custom-playerctl.backward { #custom-playerctl.backward {
@ -111,7 +124,7 @@ window#waybar {
color: #cba6f7; color: #cba6f7;
border-radius: 0px 24px 24px 0px; border-radius: 0px 24px 24px 0px;
padding-right: 12px; padding-right: 12px;
margin-right: 7px margin-right: 7px;
} }
#custom-playerlabel { #custom-playerlabel {
background: #010101; background: #010101;
@ -121,7 +134,7 @@ window#waybar {
margin: 5px 0; margin: 5px 0;
font-weight: bold; font-weight: bold;
} }
#window{ #window {
/*background: #25253a; */ /*background: #25253a; */
padding-left: 15px; padding-left: 15px;
padding-right: 15px; padding-right: 15px;