refactor: hosts/
This commit is contained in:
1 parent
cedfbd6ef6
commit
3e662f72f7
21 files changed
+140
-14
No files matched your search
@@ -67,7 +67,7 @@
|
|||||||
modules = [
|
modules = [
|
||||||
nix-flatpak.nixosModules.nix-flatpak
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
skwd-wall.nixosModules.default
|
skwd-wall.nixosModules.default
|
||||||
./hosts/WarNyx/configuration.nix
|
./hosts/Winter/WarNyx/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
Reconix = nixpkgs.lib.nixosSystem {
|
Reconix = nixpkgs.lib.nixosSystem {
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
modules = [
|
modules = [
|
||||||
nix-flatpak.nixosModules.nix-flatpak
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
skwd-wall.nixosModules.default
|
skwd-wall.nixosModules.default
|
||||||
./hosts/Reconix/configuration.nix
|
./hosts/Winter/Reconix/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
File renamed without changes.
@@ -61,7 +61,7 @@ in
|
|||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
users = {
|
users = {
|
||||||
EXAMPLE = import ../../home/EXAMPLE/${hostname}.nix; # FIXME
|
EXAMPLE = import ../../../home/Ricky/EXAMPLE/${hostname}.nix; # FIXME
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# TODO: ensure correct paths
|
# TODO: ensure correct paths
|
||||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../../home/Ricky/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
swaylock = {};
|
swaylock = {};
|
||||||
@@ -31,7 +31,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../home/Ricky/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
swaylock = {};
|
swaylock = {};
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
hostname = "Ricky";
|
hostname = "nixos";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# You can import other NixOS modules here
|
# You can import other NixOS modules here
|
||||||
@@ -62,7 +62,7 @@ in
|
|||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
users = {
|
users = {
|
||||||
dev = import ../../home/Ricky/dev/${hostname}.nix;
|
dev = import ../../../home/Ricky/dev/${hostname}.nix; # FIXME
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -68,10 +68,10 @@ in
|
|||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
users = {
|
users = {
|
||||||
Winter = import ../../home/Winter/Winter/${hostname}.nix;
|
Winter = import ../../../home/Winter/Winter/${hostname}.nix;
|
||||||
minecraft = import ../../home/Winter/Winter/minecraft.nix;
|
minecraft = import ../../../home/Winter/Winter/minecraft.nix;
|
||||||
Ekisha = import ../../home/Winter/Ekisha/${hostname}.nix;
|
Ekisha = import ../../../home/Winter/Ekisha/${hostname}.nix;
|
||||||
Tester = import ../../home/Winter/Tester/${hostname}.nix;
|
Tester = import ../../../home/Winter/Tester/${hostname}.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
File renamed without changes.
@@ -0,0 +1,86 @@
|
|||||||
|
# This is your system's configuration file.
|
||||||
|
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
hostname = ""; #FIXME, also ensure /home/username/hostname.nix
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# You can import other NixOS modules here
|
||||||
|
imports = [
|
||||||
|
# If you want to use modules your own flake exports (from modules/nixos):
|
||||||
|
# inputs.self.nixosModules.example
|
||||||
|
|
||||||
|
# Or modules from other flakes (such as nixos-hardware):
|
||||||
|
# inputs.hardware.nixosModules.common-cpu-amd
|
||||||
|
# inputs.hardware.nixosModules.common-ssd
|
||||||
|
|
||||||
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
../common/users/Winter/default.nix
|
||||||
|
#../common/global/default.nix
|
||||||
|
#../common/features/Desktop.nix
|
||||||
|
#../common/features/Applications.nix
|
||||||
|
#../common/features/servers/minecraft.nix
|
||||||
|
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
# You can add overlays here
|
||||||
|
overlays = [
|
||||||
|
# Add overlays your own flake exports (from overlays and pkgs dir):
|
||||||
|
inputs.self.overlays.additions
|
||||||
|
inputs.self.overlays.modifications
|
||||||
|
inputs.self.overlays.unstable-packages
|
||||||
|
|
||||||
|
# You can also add overlays exported from other flakes:
|
||||||
|
# neovim-nightly-overlay.overlays.default
|
||||||
|
|
||||||
|
# Or define it inline, for example:
|
||||||
|
# (final: prev: {
|
||||||
|
# hi = final.hello.overrideAttrs (oldAttrs: {
|
||||||
|
# patches = [ ./change-hello-to-hi.patch ];
|
||||||
|
# });
|
||||||
|
# })
|
||||||
|
];
|
||||||
|
# Configure your nixpkgs instance
|
||||||
|
config = {
|
||||||
|
# Disable if you don't want unfree packages
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# build home-manager with nixos-rebuild and not home-manager command
|
||||||
|
home-manager = {
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
backupFileExtension = "backup";
|
||||||
|
users = {
|
||||||
|
EXAMPLE = import ../../../home/EXAMPLE/EXAMPLE/${hostname}.nix; # FIXME
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = hostname;
|
||||||
|
|
||||||
|
# This setups a SSH server. Very important if you're setting up a headless system.
|
||||||
|
# Feel free to remove if you don't need it.
|
||||||
|
#Unused, keeping for later reference
|
||||||
|
services.openssh = {
|
||||||
|
enable = false;
|
||||||
|
settings = {
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
|
#system.stateVersion = "25.11"; #FIXME, should be fine to change on a fresh install
|
||||||
|
}
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -20,7 +20,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
swaylock = {};
|
swaylock = {};
|
||||||
+1
-1
@@ -16,7 +16,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
swaylock = {};
|
swaylock = {};
|
||||||
+1
-1
@@ -31,7 +31,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
swaylock = {};
|
swaylock = {};
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
username = ""; #FIXME
|
||||||
|
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||||
|
in {
|
||||||
|
users.users.${username} = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = ifTheyExist [
|
||||||
|
"audio"
|
||||||
|
"deluge"
|
||||||
|
"docker"
|
||||||
|
"git"
|
||||||
|
"i2c"
|
||||||
|
"libvirtd"
|
||||||
|
"minecraft"
|
||||||
|
"mysql"
|
||||||
|
"wpa_supplicant"
|
||||||
|
"plugdev"
|
||||||
|
"podman"
|
||||||
|
"tss"
|
||||||
|
"video"
|
||||||
|
"wheel"
|
||||||
|
"wireshark"
|
||||||
|
];
|
||||||
|
|
||||||
|
#packages = [pkgs.home-manager];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
|
security.pam.services = {
|
||||||
|
swaylock = {};
|
||||||
|
${username}.enableGnomeKeyring = true; #FIXME
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user