Compare commits

..

7 Commits

6 changed files with 62 additions and 47 deletions

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running `nixos-help`). # and in the NixOS manual (accessible by running `nixos-help`).
{ pkgs, inputs, lib, config, ... }: { pkgs, inputs, config, ... }:
{ {
imports = [ imports = [
@ -19,19 +19,12 @@
snowhawk = { snowhawk = {
nix-ld.enable = true; nix-ld.enable = true;
wake-on-lan.enable = true;
dwm.enable = true; dwm.enable = true;
syncthing.enable = true; syncthing.enable = true;
plymouth.enable = true; plymouth.enable = true;
}; };
# Configure keymap in X11
services.xserver = {
xkb = {
layout = "us";
variant = "";
};
};
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
@ -47,23 +40,6 @@
description = "Zynh Ludwig"; description = "Zynh Ludwig";
hashedPasswordFile = config.sops.secrets."passwords/ravenshade".path; hashedPasswordFile = config.sops.secrets."passwords/ravenshade".path;
extraGroups = [ "networkmanager" "wheel" "audio" ]; extraGroups = [ "networkmanager" "wheel" "audio" ];
packages = with pkgs; [
ripgrep
unzip
fzf
tree
gparted
arandr
brave
firefox
# steam
spotify
discord
steam-run
];
}; };
hardware.keyboard.uhk.enable = true; hardware.keyboard.uhk.enable = true;
@ -83,11 +59,10 @@
security.polkit.enable = true; security.polkit.enable = true;
home-manager.users = { "ravenshade" = import ./home.nix; }; home-manager = {
# home-manager.backupFileExtension = "backup"; users = { "ravenshade" = import ./home.nix; };
backupFileExtension = "backup";
# programs.hyprland.enable = true; };
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
neovim neovim
@ -105,17 +80,6 @@
services.avahi.enable = true; services.avahi.enable = true;
systemd.services.wakeonlan = {
description = "reenable wakeonlan every boot";
after = [ "network.target" ];
serviceConfig = {
Type = "simple";
RemainAfterExit = "true";
ExecStart = "${lib.getExe pkgs.ethtool} -s enp7s0 wol g";
};
wantedBy = [ "default.target" ];
};
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];

View File

@ -54,6 +54,21 @@
# services.easyeffects.enable = true; # services.easyeffects.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
ripgrep
unzip
fzf
tree
gparted
arandr
brave
firefox
spotify
discord
steam-run
nix-output-monitor nix-output-monitor
(writeShellScriptBin "rebuild" '' (writeShellScriptBin "rebuild" ''
nixos-rebuild switch --log-format internal-json -v |& nom --json nixos-rebuild switch --log-format internal-json -v |& nom --json

View File

@ -12,6 +12,14 @@ in
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;
# Configure keymap in X11
services.xserver = {
xkb = {
layout = "us";
variant = "";
};
};
services.xserver.windowManager.dwm = { services.xserver.windowManager.dwm = {
enable = true; enable = true;
package = pkgs.dwm.overrideAttrs (oldAttrs: { package = pkgs.dwm.overrideAttrs (oldAttrs: {

View File

@ -13,9 +13,13 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.niri.enable = true; programs.niri.enable = true;
services.displayManager.defaultSession = "niri"; environment.sessionVariables.NIXOS_OZONE_WL = "1";
services.displayManager.enable = true;
services.displayManager.sddm.enable = true; services.displayManager = {
services.displayManager.sddm.wayland.enable = true; defaultSession = "niri";
enable = true;
sddm.enable = true;
sddm.wayland.enable = true;
};
}; };
} }

View File

@ -20,6 +20,5 @@ in
}]; }];
} }
]; ];
}; };
} }

25
modules/wake-on-lan.nix Normal file
View File

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.snowhawk.wake-on-lan;
in
{
options.snowhawk.wake-on-lan = {
enable = mkEnableOption "wake-on-lan nixos module";
};
config = mkIf cfg.enable {
systemd.services.wakeonlan = {
description = "reenable wakeonlan every boot";
after = [ "network.target" ];
serviceConfig = {
Type = "simple";
RemainAfterExit = "true";
ExecStart = "${lib.getExe pkgs.ethtool} -s enp7s0 wol g";
};
wantedBy = [ "default.target" ];
};
};
}