Initial port of old configs. Will be broken

This commit is contained in:
KnightArtorias 2026-05-19 22:25:43 +00:00
parent 99c5d1afb9
commit 27f45b8ebc
54 changed files with 256 additions and 7 deletions

View file

@ -6,6 +6,9 @@
import-tree.url = "github:vic/import-tree";
wrapper-modules.url = "github:BirdeeHub/nix-wrapper-modules";
aagl.url = "github:ezKEa/aagl-gtk-on-nix";
aagl.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules);

View file

@ -0,0 +1,7 @@
{
flake.nixosModules.alacritty = {
programs.alacritty = {
enable = true;
};
};
}

15
modules/features/git.nix Normal file
View file

@ -0,0 +1,15 @@
{
flake.nixosModules.git = {
programs.git = {
enable = true;
settings = {
user = {
name = "KnightArtorias";
email = "booksandpi@gmail.com";
};
init.defaultBranch = "main";
};
};
};
}

9
modules/features/hsr.nix Normal file
View file

@ -0,0 +1,9 @@
{ inputs, ... }: {
flakes.nixosModules.hsr = { config, lib, aagl, ... }: {
imports = [ aagl.nixosModules.default ];
nix.settings = aagl.nixConfig;
programs.honkers-railway-launcher.enable = true;
};
}

View file

@ -0,0 +1,15 @@
{
flakes.nixosModules.fuzzel = { pkgs, ... }: {
services.mako = {
enable = true;
settings = {
default-timeout = 10000;
font = "Maple Mono";
background-color = "#8F56E1";
text-color = "#D8CAB8";
border-color = "#D8CAB8";
};
};
};
}

View file

@ -0,0 +1,7 @@
{
flake.nixosModules.gdm = {
services.displayManager.gdm = {
enable = true;
};
};
}

View file

@ -1,13 +1,13 @@
{ self, inputs, ... }: {
perSystem = { pkgs, ... }: {
packages.niri = inputs.wrapper-modules.wrappers.niri.wrap {
perSystem = { pkgs, lib, self', ... }: {
packages.myNiri = inputs.wrapper-modules.wrappers.niri.wrap {
inherit pkgs;
settings = {
prefer-no-csd = {};
spawn-sh-at-startup = [
"noctalia-shell"
"ckb-next -b"
(lib.getExe self'.packages.myNoctalia)
];
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
@ -276,4 +276,18 @@
};
};
};
flake.nixosModules.niri = { pkgs, lib, ... }: {
programs.niri = {
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.myNiri;
};
security.polkit.enable = true;
services.gnome.gnome-keyring.enable = true;
environment.systemPackages = with pkgs; [
xwayland-satellite
];
};
}

View file

@ -0,0 +1,64 @@
{ self, inputs, ... }: {
perSystem = { pkgs, ... }: {
packages.myNoctalia = inputs.wrapper-modules.wrappers.noctalia-shell.wrap {
inherit pkgs;
settings = {
bar = {
density = "compact";
floating = true;
position = "top";
showCapsule = true;
widgets = {
center = [
{ hideUnoccupied = false; id = "Workspace"; labelMode = "none"; }
];
left = [
{ id = "ControlCenter"; useDistroLogo = true; }
{ id = "WiFi"; }
{ id = "Bluetooth"; }
{ id = "ActiveWindow"; }
{ id = "MediaMini"; }
];
right = [
{ id = "Volume"; }
{ id = "Tray"; }
{ id = "NotificationHistory"; }
{
formatHorizontal = "HH:mm";
formatVertical = "HH mm";
id = "Clock";
useMonospacedFont = true;
usePrimaryColor = true;
}
];
};
};
colorSchemes = {
predefinedScheme = "Monochrome";
};
dock = {
enabled = false;
};
location = {
monthBeforeDay = true;
name = "Severn, Maryland";
use12hourFormat = true;
useFahrenheit = true;
};
network = {
wifiEnabled = true;
};
screenRecorder = {
directory = "$HOME/Videos/ScreenRecordings";
};
templates = {
alactirry = true;
discord = true;
fuzzel = true;
niri = true;
qt = true;
};
};
};
};
}

34
modules/features/zsh.nix Normal file
View file

@ -0,0 +1,34 @@
{
flakes.nixosModules.zsh = {
environment.systemPackages = with pkgs; [
zsh
oh-my-zsh
];
environment.variables = {
NIX_FLAKE_PATH = "$HOME/.nix/";
};
programs.zsh = {
enable = true;
enableBashCompletion = true;
enableCompletion = true;
autosuggestions.enable = true;
ohMyZsh = {
enable = true;
theme = "bira";
plugins = [
"sudo"
"git"
];
};
shellAliases = {
ll = "ls -la";
update = "sudo nix flake update --flake $NIX_FLAKE_PATH && sudo nixos-rebuild switch --upgrade-all --flake $NIX_FLAKE_PATH#$HOSTNAME";
rebuild = "sudo nixos-rebuild switch --flake $NIX_FLAKE_PATH#$HOSTNAME";
};
};
};
}

View file

@ -1,10 +1,18 @@
{ self, inputs, ... }: {
flake.nixosModules.crowConfiguration = { pkgs, lib, ... }: {
imports = [
./hardware-configuration.nix
];
inherit inputs;
nix.settings.experimental-features = [ "nix-commands" "flakes" ];
imports = [
self.nixosModules.crowHardware
self.nixosModules.nest
self.nixosModules.niri
self.nixosModules.alacritty
self.nixosModules.git
self.nixosModules.gdm
self.nixosModules.hsr
self.nixosModules.zsh
];
environment.systemPackages = with pkgs; [
pavucontrol
@ -12,6 +20,70 @@
wine
usbutils
virt-manager
prismlauncher
kubectl
kompose
openlens
htop
zip
unzip
dig
traceroute
neovim
wget
pciutils
];
programs = {
brave.enable = true;
lutris.enable = true;
vesktop.enable = true;
steam.enable = true;
};
networking.networkmanager.enable = true;
networking.hostName = "crow";
fonts.packages = with pkgs; [
nerd-fonts.fira-code
nerd-fonts.droid-sans-mono
noto-fonts
];
services = {
openssh.enable = true;
blueman.enable = true;
};
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
timeout = 1;
};
kernelPackages = pkgs.linuxPackages_latest;
kernelModules = [ "amdgpu" ];
# "Silent" boot
initrd.verbose = false;
kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
];
};
nix.settings.experimental-features = [ "nix-commands" "flakes" ];
nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
}

9
modules/users/nest.nix Normal file
View file

@ -0,0 +1,9 @@
{
flake.nixosModules.nest = {
users.users.nest = {
description = "nest";
isNormalUser = true;
extraGroups = [ "wheel" "network" ];
};
};
}

View file

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB