Compare commits
No commits in common. "ffbca576ffccfe64d07aa53422009713e010f940" and "ddd17ae4afda946a21c75f903349e4abbf7d2fa1" have entirely different histories.
ffbca576ff
...
ddd17ae4af
|
@ -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, config, ... }:
|
{ pkgs, inputs, lib, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -19,12 +19,19 @@
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
@ -40,6 +47,23 @@
|
||||||
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;
|
||||||
|
@ -59,10 +83,11 @@
|
||||||
|
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
home-manager = {
|
home-manager.users = { "ravenshade" = import ./home.nix; };
|
||||||
users = { "ravenshade" = import ./home.nix; };
|
# home-manager.backupFileExtension = "backup";
|
||||||
backupFileExtension = "backup";
|
|
||||||
};
|
# programs.hyprland.enable = true;
|
||||||
|
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
neovim
|
neovim
|
||||||
|
@ -80,6 +105,17 @@
|
||||||
|
|
||||||
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 = [ ... ];
|
||||||
|
|
|
@ -54,21 +54,6 @@
|
||||||
# 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
|
||||||
|
|
|
@ -12,14 +12,6 @@ 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: {
|
||||||
|
|
|
@ -13,13 +13,9 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.niri.enable = true;
|
programs.niri.enable = true;
|
||||||
|
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
services.displayManager.defaultSession = "niri";
|
||||||
|
services.displayManager.enable = true;
|
||||||
services.displayManager = {
|
services.displayManager.sddm.enable = true;
|
||||||
defaultSession = "niri";
|
services.displayManager.sddm.wayland.enable = true;
|
||||||
enable = true;
|
|
||||||
sddm.enable = true;
|
|
||||||
sddm.wayland.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,5 +20,6 @@ in
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue