Compare commits

..

No commits in common. "ffbca576ffccfe64d07aa53422009713e010f940" and "ddd17ae4afda946a21c75f903349e4abbf7d2fa1" have entirely different histories.

6 changed files with 47 additions and 62 deletions

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running `nixos-help`).
{ pkgs, inputs, config, ... }:
{ pkgs, inputs, lib, config, ... }:
{
imports = [
@ -19,12 +19,19 @@
snowhawk = {
nix-ld.enable = true;
wake-on-lan.enable = true;
dwm.enable = true;
syncthing.enable = true;
plymouth.enable = true;
};
# Configure keymap in X11
services.xserver = {
xkb = {
layout = "us";
variant = "";
};
};
# Enable CUPS to print documents.
services.printing.enable = true;
@ -40,6 +47,23 @@
description = "Zynh Ludwig";
hashedPasswordFile = config.sops.secrets."passwords/ravenshade".path;
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;
@ -59,10 +83,11 @@
security.polkit.enable = true;
home-manager = {
users = { "ravenshade" = import ./home.nix; };
backupFileExtension = "backup";
};
home-manager.users = { "ravenshade" = import ./home.nix; };
# home-manager.backupFileExtension = "backup";
# programs.hyprland.enable = true;
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.systemPackages = with pkgs; [
neovim
@ -80,6 +105,17 @@
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.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];

View File

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

View File

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

View File

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

View File

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

View File

@ -1,25 +0,0 @@
{ 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" ];
};
};
}