initial test config
This commit is contained in:
parent
b5d6ec3bbe
commit
cbbe1e1a59
13 changed files with 653 additions and 0 deletions
36
nixos/machines/nerflap3/configuration.nix
Normal file
36
nixos/machines/nerflap3/configuration.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../roles
|
||||
];
|
||||
|
||||
networking.hostName = "nerflap3";
|
||||
system.stateVersion = "25.05";
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
users.users.nerf.extraGroups = [ "networkmanager" ];
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
audio.enable = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
alsa.enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
git.enable = true;
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
};
|
||||
hyprland.enable = true;
|
||||
};
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.nerf = ./home.nix;
|
||||
};
|
||||
}
|
44
nixos/machines/nerflap3/hardware-configuration.nix
Normal file
44
nixos/machines/nerflap3/hardware-configuration.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "root";
|
||||
fsType = "tmpfs";
|
||||
options = [
|
||||
"size=1G"
|
||||
"mode=755"
|
||||
];
|
||||
};
|
||||
fileSystems."/persist" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=persist" ];
|
||||
neededForBoot = true;
|
||||
};
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-label/boot";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nix" ];
|
||||
};
|
||||
fileSystems."/home" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=home" ];
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader.systemd-boot.enable = true;
|
||||
initrd.luks.devices.cryptroot.device = "/dev/disk/by-uuid/597B-4974";
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
93
nixos/machines/nerflap3/home.nix
Normal file
93
nixos/machines/nerflap3/home.nix
Normal file
|
@ -0,0 +1,93 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home = {
|
||||
username = "nerf";
|
||||
homeDirectory = "/home/nerf";
|
||||
stateVersion = "25.05";
|
||||
packages = [
|
||||
pkgs.pavucontrol
|
||||
];
|
||||
};
|
||||
programs = {
|
||||
|
||||
kitty.enable = true;
|
||||
wofi.enable = true;
|
||||
helix.enable = true;
|
||||
waybar.enable = true;
|
||||
|
||||
};
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
systemd.variables = [ "--all" ]; # import environment (like PATH) into the systemd unit
|
||||
settings = {
|
||||
input = {
|
||||
kb_layout = "de";
|
||||
kb_variant = "neo";
|
||||
};
|
||||
general = {
|
||||
gaps_in = 0;
|
||||
gaps_out = 0;
|
||||
boarder_size = 1;
|
||||
"col.active_border" = "rgba(22ccffee) rgba(00ff99ee) 45deg";
|
||||
"col.inactive_border" = "rgba(595959aa)";
|
||||
layout = "master";
|
||||
allow_tearing = false;
|
||||
};
|
||||
decoration = {
|
||||
rounding = 0;
|
||||
blur = {
|
||||
enabled = false;
|
||||
size = 3;
|
||||
passes = 1;
|
||||
};
|
||||
};
|
||||
animations = {
|
||||
enabled = true;
|
||||
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
||||
animation = [
|
||||
"windows, 1, 7, myBezier"
|
||||
"windowsOut, 1, 7, default, popin 80%"
|
||||
"border, 1, 8, default"
|
||||
"fade, 1, 7, default"
|
||||
"workspace, 1, 6, default"
|
||||
];
|
||||
};
|
||||
master = {
|
||||
new_on_top = true;
|
||||
};
|
||||
"$mainMod" = "SUPER";
|
||||
"$menu" = "wofi --show drun";
|
||||
bind =
|
||||
[
|
||||
"$mainMod, Return, exec, kitty"
|
||||
"$mainMod, C, killactive,"
|
||||
"$mainMod, M, exit,"
|
||||
"$mainMod, V, togglefloating,"
|
||||
"$mainMod, P, exec, $menu"
|
||||
"$mainMod, Space, layoutmsg, swapwithmaster auto"
|
||||
"$mainMod, N, layoutmsg, cyclenext"
|
||||
"$mainMod, R, layoutmsg, cycleprev"
|
||||
"$mainMod, S, togglespecialwokspace, magic"
|
||||
"$mainMod, SHIFT, S, movetoworkspace, special:magic"
|
||||
]
|
||||
++ (builtins.concatLists (
|
||||
builtins.genList (
|
||||
i:
|
||||
let
|
||||
ws = i + 1;
|
||||
in
|
||||
[
|
||||
"$mainMod, code:1${toString i}, workspace, ${toString ws}"
|
||||
"$mainMod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
||||
]
|
||||
) 9
|
||||
));
|
||||
bindm = [
|
||||
"$mainMod, mouse:272, movewindow"
|
||||
"$mainMod, mouse:273, resizewindow"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue