Compare commits

...

2 commits

Author SHA1 Message Date
73ce9d8f58 feat(flake): make flake acknowledge ahrc-pc config 2024-09-30 16:49:24 +02:00
56bee28114 feat: added conf for ahrc-pc 2024-09-30 16:43:05 +02:00
7 changed files with 132 additions and 3 deletions

View file

@ -22,10 +22,7 @@
animations = { enabled = false; }; animations = { enabled = false; };
decoration = { decoration = {
rounding = 10;
active_opacity = 1.0;
inactive_opacity = 1.0; inactive_opacity = 1.0;
fullscreen_opacity = 1.0;
drop_shadow = false; drop_shadow = false;
dim_inactive = false; dim_inactive = false;
blur.enabled = false; blur.enabled = false;

19
ahrc-pc/configuration.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
{
imports = [ ../common/configuration.nix ./hardware-configuration.nix ];
networking.hostName = "ahrc-pc";
programs.bash.promptInit = ''
if [ "$(whoami)" = root ]; then
color=35
else
color=32
user='\u@'
fi
PS1="\[\033[0m\](\[\033[1;''${color}m\]''${user}\h\[\033[0m\] \[\033[1;34m\]\W\[\033[0m\])\\$ "
'';
system.stateVersion = "24.05";
}

View file

@ -0,0 +1,48 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/6371008b-3551-4dd6-8429-9f1d07275c74";
fsType = "xfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7912-C8B9";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/var" =
{ device = "/dev/disk/by-uuid/893e72c7-c904-43ea-b5ee-e1cea18b8268";
fsType = "ext4";
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/329a472f-945b-49da-b840-bc2fb37d2e03";
fsType = "btrfs";
};
fileSystems."/mnt/inthdd" =
{ device = "/dev/disk/by-uuid/2f7d6ae6-acda-410e-9c02-992eb64a8c7f";
fsType = "ext4";
};
swapDevices = [ {
device = "/swapfile";
size = 8 * 1024;
} ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
networking.interfaces.enp42s0.wakeOnLan.enable = true;
}

33
ahrc-pc/home.nix Normal file
View file

@ -0,0 +1,33 @@
{ config, pkgs, ... }:
{
imports = [ ../common/home.nix ];
home.stateVersion = "24.05";
programs.zsh = {
localVariables = {
PROMPT = ''
[%F{magenta}%B%n@%m%f%b][%F{blue}%B%50<...<%5~%<<%b%f][%B%?%b]
[%B%j%b%# '';
};
};
wayland.windowManager.hyprland = {
settings = {
"$col_accentdark" = "rgb(9933ff)"
"$col_accentlight" = "rgb(d966ff)"
"$col_inactive" = "rgba(80808080)"
animations.enabled = true;
decoration = {
inactive_opacity = 0.9;
drop_shadow = true;
dim_inactive = true;
blur.enabled = true;
};
gestures.workspace_swipe = false;
misc.animate_manual_resizes = true;
};
};
}

View file

@ -36,6 +36,7 @@
]; ];
services.udisks2.enable = true; services.udisks2.enable = true;
services.libinput.enable = true;
programs.hyprland.enable = true; programs.hyprland.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;

View file

@ -138,6 +138,7 @@
settings = { settings = {
monitor = ", highrr, 0x0, 1"; monitor = ", highrr, 0x0, 1";
"$col_urgent" = "rgb(ffd966)";
"$terminal" = "kitty"; "$terminal" = "kitty";
"$browser" = "firefox"; "$browser" = "firefox";
"$locker" = "hyprlock"; "$locker" = "hyprlock";
@ -157,6 +158,11 @@
focus_preferred_method = 1; focus_preferred_method = 1;
movefocus_cycles_fullscreen = false; movefocus_cycles_fullscreen = false;
}; };
decoration = {
rounding = 10;
active_opacity = 1.0;
fullscreen_opacity = 1.0;
};
general = { general = {
border_size = 2; border_size = 2;
"col.inactive_border" = "$col_inactive"; "col.inactive_border" = "$col_inactive";
@ -282,6 +288,18 @@
", XF86MonBrightnessDown, exec, swayosd-client --brightness=lower" ", XF86MonBrightnessDown, exec, swayosd-client --brightness=lower"
]; ];
}; };
extraConfig = ''
submap = resize
bind = , escape, submap, reset
bind = SUPER Alt_L, R, submap, reset
binde = , A, resizeactive, -25 0
binde = , Z, resizeactive, 0 -25
binde = , S, resizeactive, 0 25
binde = , D, resizeactive, 25 0
submap = reset
bind = SUPER Alt_L, R, submap, resize
'';
}; };
programs.hyprlock = { programs.hyprlock = {

View file

@ -8,6 +8,19 @@
}; };
outputs = inputs@{ self, nixpkgs, home-manager, ... }: { outputs = inputs@{ self, nixpkgs, home-manager, ... }: {
nixosConfigurations.ahrc-pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./ahrc-pc/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.ahurac = import ./ahrc-pc/home.nix;
}
];
};
nixosConfigurations.ahrc-laptop = nixpkgs.lib.nixosSystem { nixosConfigurations.ahrc-laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [