Compare commits

...

3 Commits

Author SHA1 Message Date
44c97f169d
Changed other hostnames 2025-01-10 13:55:26 +01:00
ecc8187973
Migrated hostname 2025-01-10 13:47:02 +01:00
9c88315c00
Changed justfile 2025-01-10 13:20:05 +01:00
15 changed files with 62 additions and 269 deletions

125
flake.nix
View File

@ -35,9 +35,8 @@
};
in
{
# Laptop Configuration
nixosConfigurations = {
xv-laptop = nixpkgs.lib.nixosSystem {
ti-clt-lpt01 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
@ -45,25 +44,10 @@
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
./hosts/laptop
./hosts/ti-clt-lpt01
];
};
};
homeConfigurations = {
"xeovalyte@xv-laptop" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs nix-colors; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/laptop/home.nix
];
};
};
# Christa Desktop Configuration
nixosConfigurations = {
ch-clt-dsk01 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
@ -73,9 +57,42 @@
./hosts/ch-clt-dsk01
];
};
ti-clt-tbl01 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
inputs.nixos-hardware.nixosModules.microsoft-surface-go
nixos-cosmic.nixosModules.default
./hosts/ti-clt-tbl01
];
};
ti-clt-dsk01 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/ti-clt-dsk01
];
};
};
homeConfigurations = {
"xeovalyte@ti-clt-lpt01" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs nix-colors; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/laptop/home.nix
];
};
"kiiwy@ch-clt-dsk01" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs nix-colors; };
@ -85,85 +102,27 @@
./hosts/ch-clt-dsk01/home.nix
];
};
};
# Surface Configuration
nixosConfigurations = {
xv-surface = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
"xeovalyte@ti-clt-tbl01" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs nix-colors; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
inputs.nixos-hardware.nixosModules.microsoft-surface-go
nixos-cosmic.nixosModules.default
./hosts/surface
./hosts/ti-clt-tbl01/home.nix
];
};
};
homeConfigurations = {
"xeovalyte@xv-surface" = home-manager.lib.homeManagerConfiguration {
"xeovalyte@ti-clt-dsk01" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs nix-colors; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/surface/home.nix
./hosts/ti-clt-dsk01/home.nix
];
};
};
nixosConfigurations = {
xv-desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/desktop
];
};
};
homeConfigurations = {
"xeovalyte@xv-desktop" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs nix-colors; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/desktop/home.nix
];
};
};
# pm01vm01 Configuration
nixosConfigurations = {
pm01vm01 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/pm01vm01
];
};
};
homeConfigurations = {
"xeovalyte@pm01vm01" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs nix-colors; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/pm01vm01/home.nix
];
};
};
};
}

View File

@ -13,8 +13,6 @@
};
settings = {
hostname = "ch-clt-dsk01";
applications.common.enable = true;
applications.alacritty.enable = false;
applications.devenv.enable = false;
@ -55,13 +53,4 @@
home.stateVersion = "24.05";
};
options = {
settings.hostname = lib.mkOption {
type = with lib.types; str;
description = ''
Define the host of the machine
'';
};
};
}

View File

@ -1,48 +0,0 @@
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
# CLI
../../modules/system/cli/common.nix
../../modules/system/cli/docker.nix
# Hardware
../../modules/system/hardware/firewall.nix
../../modules/system/hardware/garbage-collection.nix
../../modules/system/hardware/locale.nix
];
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [
"https://nix-community.cachix.org"
];
};
# Bootloader.
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = true;
networking.hostName = "pm01vm01"; # Define your hostname.
users.users.xeovalyte = {
isNormalUser = true;
description = "Timo Boomers";
extraGroups = [ "networkmanager" "wheel" ];
};
# Enable ssh
services.openssh.enable = true;
# Forward ports
networking.firewall = {
allowedTCPPorts = [ 80 443 53 ];
allowedUDPPorts = [ 53 ];
};
system.stateVersion = "24.05";
}

View File

@ -1,37 +0,0 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ohci_pci" "ehci_pci" "virtio_pci" "ahci" "usbhid" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/47301fe6-a7db-4ffd-854a-beddd53b6d99";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6A5B-F811";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s8.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View File

@ -1,48 +0,0 @@
{ pkgs, lib, config, ... }:
{
imports = [
# Gui
../../modules/home/gui/theming.nix
# CLI
../../modules/home/cli/common
../../modules/home/cli/yazi.nix
];
options = {
host = lib.mkOption {
type = with lib.types; str;
description = ''
Define the host of the machine
'';
};
headless = lib.mkOption {
type = with lib.types; bool;
description = ''
Is this machine headless?
'';
};
};
config = {
home = {
username = "xeovalyte";
homeDirectory = "/home/xeovalyte";
};
host = "pm01vm01";
headless = true;
home.packages = with pkgs; [
];
# Enable home-manager
programs.home-manager.enable = true;
home.stateVersion = "24.05";
};
}

View File

@ -59,7 +59,7 @@
};
# Networking configuration
networking.hostName = "xv-desktop"; # Define your hostname.
networking.hostName = "ti-clt-dsk01"; # Define your hostname.
networking.interfaces.enp7s0.wakeOnLan.enable = true;
users.users.xeovalyte = {

View File

@ -13,8 +13,6 @@
};
settings = {
hostname = "xv-desktop";
applications.common.enable = true;
applications.alacritty.enable = false;
applications.devenv.enable = true;
@ -51,13 +49,4 @@
home.stateVersion = "24.05";
};
options = {
settings.hostname = lib.mkOption {
type = with lib.types; str;
description = ''
Define the host of the machine
'';
};
};
}

View File

@ -64,7 +64,7 @@
configurationLimit = 32;
};
networking.hostName = "xv-laptop"; # Define your hostname.
networking.hostName = "ti-clt-lpt01"; # Define your hostname.
networking.firewall = {
enable = true;

View File

@ -1,4 +1,4 @@
{ pkgs, lib, ... }:
{ pkgs, ... }:
{
imports = [
@ -13,8 +13,6 @@
};
settings = {
hostname = "xv-laptop";
applications.common.enable = true;
applications.alacritty.enable = true;
applications.devenv.enable = true;
@ -72,14 +70,4 @@
home.stateVersion = "24.05";
};
options = {
settings.hostname = lib.mkOption {
type = with lib.types; str;
description = ''
Define the host of the machine
'';
};
};
}

View File

@ -59,7 +59,7 @@
configurationLimit = 32;
};
networking.hostName = "xv-surface"; # Define your hostname.
networking.hostName = "ti-clt-tbl01"; # Define your hostname.
users.users.xeovalyte = {
isNormalUser = true;

View File

@ -13,8 +13,6 @@
};
settings = {
hostname = "xv-surface";
applications.common.enable = true;
applications.alacritty.enable = false;
applications.devenv.enable = false;
@ -50,13 +48,4 @@
home.stateVersion = "24.05";
};
options = {
settings.hostname = lib.mkOption {
type = with lib.types; str;
description = ''
Define the host of the machine
'';
};
};
}

View File

@ -1,12 +1,24 @@
set unstable
default:
@just --choose
@just --list
rebuild:
update:
nix flake update
clean:
sudo nix-collect-garbage -d
nix-collect-garbage -d
fmt:
nix fmt
switch:
sudo nixos-rebuild switch --flake .
home-manager switch --flake .
rebuild-system:
switch-system:
sudo nixos-rebuild switch --flake .
rebuild-home-manager:
switch-home-manager:
home-manager switch --flake .