push
This commit is contained in:
35
modules/hosts/box/box.nix
Normal file
35
modules/hosts/box/box.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
{ den, ... }: {
|
||||
den.aspects.box = {
|
||||
includes = with den.aspects; [
|
||||
den.provides.home-manager
|
||||
syncthing
|
||||
fish
|
||||
|
||||
cloudflared
|
||||
searxng
|
||||
copyparty
|
||||
glances
|
||||
#invidious
|
||||
mailserver
|
||||
matrix
|
||||
redlib
|
||||
sish
|
||||
vscode-server
|
||||
dns
|
||||
openssh
|
||||
];
|
||||
|
||||
nixos = {
|
||||
networking.hostName = "box";
|
||||
|
||||
users.users.levi = {
|
||||
isNormalUser = true;
|
||||
description = "levi";
|
||||
extraGroups = [];
|
||||
|
||||
hashedPasswordFile = "/home/bug/users/levi.passwd";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
98
modules/hosts/defaults.nix
Normal file
98
modules/hosts/defaults.nix
Normal file
@@ -0,0 +1,98 @@
|
||||
{
|
||||
den.default = {
|
||||
nixos = { pkgs, ... }: {
|
||||
imports = [
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
];
|
||||
|
||||
system = {
|
||||
stateVersion = "26.05";
|
||||
|
||||
autoUpgrade = {
|
||||
enable = true;
|
||||
allowReboot = false;
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
nix = {
|
||||
optimise.automatic = true;
|
||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
};
|
||||
|
||||
security = {
|
||||
sudo = {
|
||||
enable = true;
|
||||
wheelNeedsPassword = false;
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
|
||||
initrd.checkJournalingFS = false;
|
||||
|
||||
loader = {
|
||||
grub.splashImage = null;
|
||||
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 25;
|
||||
};
|
||||
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
comma
|
||||
fastfetch
|
||||
git
|
||||
home-manager
|
||||
inetutils
|
||||
micro
|
||||
nh
|
||||
nil
|
||||
nixd
|
||||
nixfmt
|
||||
nix-index
|
||||
nix-output-monitor
|
||||
nix-prefetch
|
||||
nvd
|
||||
psmisc
|
||||
tree
|
||||
unzip
|
||||
wget
|
||||
];
|
||||
|
||||
time.timeZone = "America/Chicago";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
homeManager = {
|
||||
home = {
|
||||
stateVersion = "26.05";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
36
modules/hosts/laptop/laptop.nix
Normal file
36
modules/hosts/laptop/laptop.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
{ den, ... }: {
|
||||
den.aspects.laptop = {
|
||||
includes = with den.aspects; [
|
||||
amdgpu
|
||||
cosmic
|
||||
firefox
|
||||
audio
|
||||
|
||||
den.provides.home-manager
|
||||
stylix
|
||||
#nvidia
|
||||
syncthing
|
||||
swap
|
||||
cloudflare-warp
|
||||
packages
|
||||
development
|
||||
#cad
|
||||
mpd
|
||||
virtualisation
|
||||
flatpak
|
||||
fish
|
||||
dns
|
||||
openssh
|
||||
];
|
||||
|
||||
nixos = {
|
||||
networking.hostName = "nix";
|
||||
|
||||
services.logind.settings.Login = {
|
||||
HandleLidSwitch = "ignore";
|
||||
HandleLidSwitchDocked = "ignore";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
31
modules/hosts/nix/nix.nix
Normal file
31
modules/hosts/nix/nix.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ den, ... }:
|
||||
{
|
||||
den.aspects.nix = {
|
||||
includes = with den.aspects; [
|
||||
#amdgpu
|
||||
cosmic
|
||||
firefox
|
||||
audio
|
||||
|
||||
den.provides.home-manager
|
||||
stylix
|
||||
nvidia
|
||||
syncthing
|
||||
swap
|
||||
#cloudflare-warp
|
||||
packages
|
||||
development
|
||||
#cad
|
||||
mpd
|
||||
virtualisation
|
||||
flatpak
|
||||
fish
|
||||
dns
|
||||
openssh
|
||||
];
|
||||
|
||||
nixos = {
|
||||
networking.hostName = "nix";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user