shelman->patagia

This commit is contained in:
Daniel Lundin 2024-09-02 14:43:17 +02:00
parent ad56904021
commit 9bbd3fa12e
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
14 changed files with 26 additions and 25 deletions

View file

@ -8,7 +8,7 @@ IT in a box!
2. Clone this repo: 2. Clone this repo:
``` ```
nix-shell -p git --command 'git clone https://git.shelman.io/shelmangroup/nixos-config.git' nix-shell -p git --command 'git clone https://patagia.dev/dln/nixos-config.git'
``` ```
3. Ensure host configuration exists at `./nixos-config/hosts/${HOSTNAME}` and contains at minimum the hardware configuration. The NixOS installer will write this out to `/etc/nixos/hardware-configuration.nix`. 3. Ensure host configuration exists at `./nixos-config/hosts/${HOSTNAME}` and contains at minimum the hardware configuration. The NixOS installer will write this out to `/etc/nixos/hardware-configuration.nix`.

View file

@ -7,10 +7,10 @@
let let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf mkEnableOption;
cfg = config.shelman.podman; cfg = config.patagia.podman;
in in
{ {
options.shelman.desktop.enable = mkEnableOption "Desktop environment and common applications"; options.patagia.desktop.enable = mkEnableOption "Desktop environment and common applications";
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ gnome-ssh-askpass4 ]; environment.systemPackages = with pkgs; [ gnome-ssh-askpass4 ];

View file

@ -7,10 +7,10 @@
let let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf mkEnableOption;
cfg = config.shelman.podman; cfg = config.patagia.podman;
in in
{ {
options.shelman.laptop.enable = mkEnableOption "Laptop tools and configuration"; options.patagia.laptop.enable = mkEnableOption "Laptop tools and configuration";
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ gnomeExtensions.battery-health-charging ]; environment.systemPackages = with pkgs; [ gnomeExtensions.battery-health-charging ];

View file

@ -7,10 +7,10 @@
let let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf mkEnableOption;
cfg = config.shelman.plymouth; cfg = config.patagia.plymouth;
in in
{ {
options.shelman.plymouth.enable = mkEnableOption "Fancy boot splash"; options.patagia.plymouth.enable = mkEnableOption "Fancy boot splash";
config = mkIf cfg.enable { config = mkIf cfg.enable {
boot = { boot = {

View file

@ -7,10 +7,10 @@
let let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf mkEnableOption;
cfg = config.shelman.podman; cfg = config.patagia.podman;
in in
{ {
options.shelman.podman.enable = mkEnableOption "Podman"; options.patagia.podman.enable = mkEnableOption "Podman";
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.extraInit = '' environment.extraInit = ''

View file

@ -1,6 +1,6 @@
return { return {
{ {
"https://git.shelman.io/shelmangroup/dieter.nvim.git", "https://patagia.dev/patagia/dieter.nvim.git",
lazy = false, lazy = false,
priority = 1000, priority = 1000,
}, },

View file

@ -19,5 +19,5 @@
./wezterm.nix ./wezterm.nix
]; ];
options.shelman.desktop.enable = lib.mkEnableOption "Desktop environment"; options.patagia.desktop.enable = lib.mkEnableOption "Desktop environment";
} }

View file

@ -19,7 +19,7 @@ let
}; };
in in
{ {
config = lib.mkIf config.shelman.desktop.enable { config = lib.mkIf config.patagia.desktop.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
inputs.ghostty.packages.${pkgs.system}.default inputs.ghostty.packages.${pkgs.system}.default

View file

@ -6,7 +6,7 @@
}: }:
with lib.hm.gvariant; with lib.hm.gvariant;
{ {
config = lib.mkIf config.shelman.desktop.enable { config = lib.mkIf config.patagia.desktop.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
gnome-tweaks gnome-tweaks
gnome-pomodoro gnome-pomodoro

View file

@ -5,7 +5,7 @@
... ...
}: }:
{ {
config = lib.mkIf config.shelman.desktop.enable { config = lib.mkIf config.patagia.desktop.enable {
home.packages = with pkgs; [ tor-browser ]; home.packages = with pkgs; [ tor-browser ];

View file

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
{ {
config = lib.mkIf config.shelman.desktop.enable { config = lib.mkIf config.patagia.desktop.enable {
programs.wezterm = { programs.wezterm = {
enable = true; enable = true;

View file

@ -1,6 +1,6 @@
{ inputs, pkgs, ... }: { inputs, pkgs, ... }:
{ {
shelman = { patagia = {
desktop.enable = true; desktop.enable = true;
}; };

View file

@ -78,10 +78,10 @@
networking = { networking = {
hostName = "dinky"; hostName = "dinky";
domain = "aarn.shelman.io"; domain = "aarn.patagia.dev";
search = [ search = [
"shelman.io" "patagia.dev"
"aarn.shelman.io" "aarn.patagia.dev"
]; ];
useDHCP = lib.mkDefault true; useDHCP = lib.mkDefault true;
}; };
@ -105,7 +105,7 @@
]; ];
}; };
shelman = { patagia = {
desktop.enable = true; desktop.enable = true;
laptop.enable = true; laptop.enable = true;
plymouth.enable = true; plymouth.enable = true;
@ -119,7 +119,7 @@
nix.buildMachines = [ nix.buildMachines = [
{ {
hostName = "nemo.aarn.shelman.io"; hostName = "nemo.aarn.patagia.dev";
sshUser = "nixremote"; sshUser = "nixremote";
system = "x86_64-linux"; system = "x86_64-linux";
protocol = "ssh-ng"; protocol = "ssh-ng";

View file

@ -80,7 +80,7 @@
networking = { networking = {
hostName = "nemo"; # Define your hostname. hostName = "nemo"; # Define your hostname.
domain = "aarn.shelman.io"; domain = "aarn.patagia.dev";
nameservers = [ nameservers = [
"10.1.100.11" "10.1.100.11"
"10.1.100.12" "10.1.100.12"
@ -135,8 +135,8 @@
services.resolved = { services.resolved = {
enable = true; enable = true;
domains = [ domains = [
"shelman.io" "patagia.dev"
"aarn.shelman.io" "aarn.patagia.dev"
]; ];
llmnr = "false"; llmnr = "false";
fallbackDns = [ "9.9.9.9" ]; fallbackDns = [ "9.9.9.9" ];
@ -157,7 +157,7 @@
settings = { }; settings = { };
}; };
shelman = { patagia = {
desktop.enable = true; desktop.enable = true;
plymouth.enable = true; plymouth.enable = true;
podman.enable = true; podman.enable = true;
@ -165,6 +165,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
ffado ffado
libcamera
lm_sensors lm_sensors
# pkgs.pam_rssh # pkgs.pam_rssh
openconnect openconnect