Skip to content

Commit

Permalink
Update sirius host
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasl-dev committed Oct 23, 2024
1 parent c1a8d9d commit 93e09a2
Show file tree
Hide file tree
Showing 15 changed files with 114 additions and 88 deletions.
9 changes: 2 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
inherit inputs pkgs-unstable;
};
modules = [
./hosts/unspecific
./hosts/vega
./hosts/specific/vega

home-manager.nixosModules.home-manager

Expand All @@ -69,12 +68,8 @@
inherit inputs pkgs-unstable;
};
modules = [
./hosts/unspecific
./hosts/sirius
./hosts/specific/sirius

home-manager.nixosModules.home-manager

catppuccin.nixosModules.catppuccin
nix-ld.nixosModules.nix-ld
];
};
Expand Down
19 changes: 19 additions & 0 deletions hosts/base/desktop/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ inputs, pkgs-unstable, ... }:

{
imports = [ ../unspecific ];

home-manager = {
extraSpecialArgs = {
inherit inputs pkgs-unstable;
};
useGlobalPkgs = true;
useUserPackages = true;
};

catppuccin = {
enable = true;

flavor = "mocha";
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
./users.nix
./shell.nix

../../modules/docker.nix
../../modules/nix-ld.nix
../../../modules/docker.nix
../../../modules/nix-ld.nix
];

system.stateVersion = "24.05";
Expand All @@ -30,12 +30,6 @@

networking.firewall.enable = true;

catppuccin = {
enable = true;

flavor = "mocha";
};

environment.systemPackages = with pkgs; [
# nix language server
nixd
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions hosts/base/unspecific/shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
programs.zsh = {
enable = true;
};

environment.pathsToLink = [ "/share/zsh" ];
}
22 changes: 22 additions & 0 deletions hosts/base/unspecific/users.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ pkgs, ... }:

{
users.users = {
root = {
openssh.authorizedKeys.keys = [ (builtins.readFile ../../../dots/ssh/id_ed25519.pub) ];
};

lukas = {
isNormalUser = true;
description = "Lukas Leeb";
initialPassword = "lukas";
extraGroups = [
"networkmanager"
"wheel"
"docker"
];
shell = pkgs.nushell;
openssh.authorizedKeys.keys = [ (builtins.readFile ../../../dots/ssh/id_ed25519.pub) ];
};
};
}
14 changes: 8 additions & 6 deletions hosts/sirius/default.nix → hosts/specific/sirius/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
imports = [
./hardware-configuration.nix
../../base/unspecific

./packages.nix
./ssh.nix
];

boot = {
tmp.cleanOnBoot = true;
};
Expand All @@ -8,10 +16,4 @@
hostName = "sirius";
domain = "contaboserver.net";
};

services.openssh.enable = true;

networking.firewall = {
allowedTCPPorts = [ 22 ];
};
}
File renamed without changes.
24 changes: 24 additions & 0 deletions hosts/specific/sirius/packages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ inputs, pkgs, ... }:

{
environment.systemPackages = with pkgs; [
git
htop
wget
curl
just
];

programs.neovim = {
enable = true;
package = inputs.neovim-nightly-overlay.packages.${pkgs.system}.default;

defaultEditor = true;
viAlias = true;
vimAlias = true;
};

environment.pathsToLink = {
"/root/.config/nvim" = ../../../dots/nvim;
};
}
7 changes: 7 additions & 0 deletions hosts/specific/sirius/ssh.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
services.openssh.enable = true;

networking.firewall = {
allowedTCPPorts = [ 22 ];
};
}
45 changes: 23 additions & 22 deletions hosts/vega/default.nix → hosts/specific/vega/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,29 @@
{
imports = [
./hardware-configuration.nix
../../base/desktop

../../modules/bluetooth.nix
../../modules/cloudflare_dns.nix
../../modules/onepassword.nix
../../modules/localsend.nix
../../modules/udiskie.nix
../../modules/nvidia-containers.nix
../../modules/gnome-keyring.nix
../../modules/seahorse.nix
../../modules/nautilus.nix
../../modules/hyprland.nix
../../modules/nvidia.nix
../../modules/opengl.nix
../../modules/ollama.nix
../../modules/pipewire.nix
../../modules/polkit.nix
../../modules/qt.nix
../../modules/steam.nix
../../modules/looking-glass.nix
../../modules/xserver.nix
../../modules/sddm.nix
../../modules/uxplay.nix
../../../modules/bluetooth.nix
../../../modules/cloudflare_dns.nix
../../../modules/onepassword.nix
../../../modules/localsend.nix
../../../modules/udiskie.nix
../../../modules/nvidia-containers.nix
../../../modules/gnome-keyring.nix
../../../modules/seahorse.nix
../../../modules/nautilus.nix
../../../modules/hyprland.nix
../../../modules/nvidia.nix
../../../modules/opengl.nix
../../../modules/ollama.nix
../../../modules/pipewire.nix
../../../modules/polkit.nix
../../../modules/qt.nix
../../../modules/steam.nix
../../../modules/looking-glass.nix
../../../modules/xserver.nix
../../../modules/sddm.nix
../../../modules/uxplay.nix
];

networking.hostName = "vega";
Expand All @@ -45,7 +46,7 @@
};

home-manager.users = {
lukas = import ../../home/lukas {
lukas = import ../../../home/lukas {
inherit inputs pkgs pkgs-unstable;

host = {
Expand Down
File renamed without changes.
14 changes: 0 additions & 14 deletions hosts/unspecific/shell.nix

This file was deleted.

31 changes: 0 additions & 31 deletions hosts/unspecific/users.nix

This file was deleted.

0 comments on commit 93e09a2

Please sign in to comment.