Add various small tweaks
- utilized specialArgs - mount /home/tristand/nix at /etc/nixos - added work /etc/hosts - use ids instead of paths for disk mounting - and more
This commit is contained in:
parent
a9051e1f4d
commit
f355381d2b
11 changed files with 29 additions and 30 deletions
|
@ -160,12 +160,11 @@
|
||||||
};
|
};
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
nixos-pulse = nixpkgs.lib.nixosSystem {
|
nixos-pulse = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = args;
|
||||||
modules =
|
modules =
|
||||||
[
|
[
|
||||||
./systems/nixos-pulse
|
./systems/nixos-pulse
|
||||||
{
|
{
|
||||||
_module = { inherit args; };
|
|
||||||
|
|
||||||
nix.registry.nixpkgs.flake = nixpkgs;
|
nix.registry.nixpkgs.flake = nixpkgs;
|
||||||
nixpkgs.pkgs = pkgs;
|
nixpkgs.pkgs = pkgs;
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,12 @@ in
|
||||||
cavalier
|
cavalier
|
||||||
freetube
|
freetube
|
||||||
filelight
|
filelight
|
||||||
|
element-desktop
|
||||||
inkscape
|
inkscape
|
||||||
jellyfin-media-player
|
jellyfin-media-player
|
||||||
kate
|
kate
|
||||||
libsForQt5.kdeconnect-kde
|
libsForQt5.kdeconnect-kde
|
||||||
|
libsForQt5.plasma-vault
|
||||||
neofetch
|
neofetch
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
onlyoffice-bin
|
onlyoffice-bin
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
, inputs
|
, inputs
|
||||||
, ...
|
, ...
|
||||||
}: {
|
}: {
|
||||||
# imports = [
|
|
||||||
# ../shell
|
|
||||||
#];
|
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
|
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
|
@ -43,7 +39,7 @@
|
||||||
cmake
|
cmake
|
||||||
curl
|
curl
|
||||||
direnv
|
direnv
|
||||||
emacs-unstable-pgtk
|
config.services.emacs.package
|
||||||
fd
|
fd
|
||||||
gnutls
|
gnutls
|
||||||
gnumake
|
gnumake
|
||||||
|
|
|
@ -124,6 +124,7 @@ in
|
||||||
|
|
||||||
packages = with pkgs.unstable-pkgs; [
|
packages = with pkgs.unstable-pkgs; [
|
||||||
btop
|
btop
|
||||||
|
config.services.emacs.package
|
||||||
imagemagick
|
imagemagick
|
||||||
rust-motd
|
rust-motd
|
||||||
zellij
|
zellij
|
||||||
|
|
|
@ -52,6 +52,12 @@
|
||||||
vim # fallback ed
|
vim # fallback ed
|
||||||
];
|
];
|
||||||
|
|
||||||
|
fileSystems."/etc/nixos" = {
|
||||||
|
device = "/home/tristand/nix";
|
||||||
|
fsType = "none";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
nix-ld.dev.enable = true;
|
nix-ld.dev.enable = true;
|
||||||
command-not-found.enable = false;
|
command-not-found.enable = false;
|
||||||
|
|
|
@ -37,17 +37,4 @@
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", GROUP="wheel"
|
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", GROUP="wheel"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# virtualisation.libvirtd.allowedBridges = [
|
|
||||||
# "virbr0"
|
|
||||||
# "testbr0"
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# networking.bridges = {
|
|
||||||
# testbr0 = {
|
|
||||||
# interfaces = [
|
|
||||||
# "enp5s0f4u1u1c2"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,16 @@
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "nixos-pulse";
|
hostName = "nixos-pulse";
|
||||||
|
extraHosts = ''
|
||||||
|
192.168.0.75 monitor.oekonzept.de
|
||||||
|
192.168.0.151 rosa.oekonzept.de
|
||||||
|
192.168.0.171 karl.oekonzept.de
|
||||||
|
192.168.0.206 vewadb.oekonzept.de
|
||||||
|
192.168.0.191 vewadb2.oekonzept.de
|
||||||
|
192.168.0.190 vpn.oekonzept.de
|
||||||
|
192.168.0.180 vewasmb.oekonzept.de
|
||||||
|
192.168.0.91 puppet.oekonzept.de
|
||||||
|
'';
|
||||||
useDHCP = lib.mkDefault true;
|
useDHCP = lib.mkDefault true;
|
||||||
interfaces = {
|
interfaces = {
|
||||||
enp5s0f4u1u1c2 = {
|
enp5s0f4u1u1c2 = {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
disk = {
|
disk = {
|
||||||
cryptroot_0 = {
|
cryptroot_0 = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/disk/by-path/pci-0000:02:00.0-nvme-1";
|
device = "/dev/disk/by-id/nvme-eui.0000000623072487caf25b0310000017";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
};
|
};
|
||||||
cryptroot_1 = {
|
cryptroot_1 = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/disk/by-path/pci-0000:04:00.0-nvme-1";
|
device = "/dev/disk/by-id/nvme-eui.0000000623072487caf25b031000000d";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Testa Test";
|
description = "Testa Test";
|
||||||
extraGroups = [ "audio" "docker" "networkmanager" "i2c" "wheel" "libvirtd" "qemu-libvirtd" "input" ];
|
extraGroups = [ "audio" "docker" "networkmanager" "i2c" "wheel" "libvirtd" "qemu-libvirtd" "input" ];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.unstable-os.fish;
|
||||||
home = "/home/tester";
|
home = "/home/tester";
|
||||||
hashedPassword = "$6$YJT50/Za3FSFQuNT$0orD1URwoURoRKO9sIAsUiIHxOtEOjmPXn5Mp7vAmIYlgVmI629qS7YPUInmztEtEorRpkSMbV3.fCy9NQhKX.";
|
hashedPassword = "$6$YJT50/Za3FSFQuNT$0orD1URwoURoRKO9sIAsUiIHxOtEOjmPXn5Mp7vAmIYlgVmI629qS7YPUInmztEtEorRpkSMbV3.fCy9NQhKX.";
|
||||||
};
|
};
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Tristan Druyen";
|
description = "Tristan Druyen";
|
||||||
extraGroups = [ "audio" "docker" "networkmanager" "i2c" "wheel" "libvirtd" "qemu-libvirtd" "input" ];
|
extraGroups = [ "audio" "docker" "networkmanager" "i2c" "wheel" "libvirtd" "qemu-libvirtd" "input" ];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.unstable-os.fish;
|
||||||
home = "/home/tristand";
|
home = "/home/tristand";
|
||||||
hashedPassword = "$6$Wj.XY8JgH5EWuog4$HnbtPJXDEqKXFrzkPVEjih3PytcpBCrkfL7TAwkXd0IFced7kGMlZNliNsAqQ3XqfyUzAYiiKTIqoPVJEk.s..";
|
hashedPassword = "$6$Wj.XY8JgH5EWuog4$HnbtPJXDEqKXFrzkPVEjih3PytcpBCrkfL7TAwkXd0IFced7kGMlZNliNsAqQ3XqfyUzAYiiKTIqoPVJEk.s..";
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
../home-mods/virt
|
../home-mods/virt
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
config.home = {
|
||||||
username = "tester";
|
username = "tester";
|
||||||
stateVersion = "23.05";
|
stateVersion = "23.05";
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,11 +14,9 @@
|
||||||
../home-mods/virt
|
../home-mods/virt
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config.home = {
|
||||||
home = {
|
username = "tristand";
|
||||||
username = "tristand";
|
|
||||||
|
|
||||||
stateVersion = "23.05";
|
stateVersion = "23.05";
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue