Docker config changes, add nixarr host
This commit is contained in:
@@ -31,12 +31,14 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.home-manager.follows = "home-manager";
|
inputs.home-manager.follows = "home-manager";
|
||||||
};
|
};
|
||||||
|
nixarr.url = "github:rasmus-kirk/nixarr";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
catppuccin,
|
catppuccin,
|
||||||
lanzaboote,
|
lanzaboote,
|
||||||
|
nixarr,
|
||||||
nur,
|
nur,
|
||||||
plasma-manager,
|
plasma-manager,
|
||||||
sops-nix,
|
sops-nix,
|
||||||
@@ -124,6 +126,12 @@
|
|||||||
home-manager = inputs.home-manager-stable;
|
home-manager = inputs.home-manager-stable;
|
||||||
modules = [];
|
modules = [];
|
||||||
};
|
};
|
||||||
|
nixarr = mkNixOSConfigurations {
|
||||||
|
host = hosts.nixarr;
|
||||||
|
nixpkgs = inputs.nixpkgs-stable;
|
||||||
|
home-manager = inputs.home-manager-stable;
|
||||||
|
modules = [nixarr.nixosModules.default];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,6 +71,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
|
dotDir = "${config.xdg.configHome}/zsh";
|
||||||
history = {
|
history = {
|
||||||
append = true;
|
append = true;
|
||||||
extended = true;
|
extended = true;
|
||||||
|
|||||||
@@ -12,12 +12,8 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
extraPackages = with pkgs; [
|
enable = true;
|
||||||
amdvlk
|
enable32Bit = true;
|
||||||
];
|
|
||||||
extraPackages32 = with pkgs; [
|
|
||||||
driversi686Linux.amdvlk
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
|
|||||||
@@ -19,4 +19,10 @@ in {
|
|||||||
arch = "x86_64-Linux";
|
arch = "x86_64-Linux";
|
||||||
user = user;
|
user = user;
|
||||||
};
|
};
|
||||||
|
nixarr = {
|
||||||
|
hostname = "nixarr";
|
||||||
|
dir = "nixarr";
|
||||||
|
arch = "x86_64-Linux";
|
||||||
|
user = user;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
18
hosts/nixarr/configuration.nix
Normal file
18
hosts/nixarr/configuration.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Edit this configuration file to define what should be installed on
|
||||||
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
# Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../../nixos/base.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = "nixarr";
|
||||||
|
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
}
|
||||||
11
hosts/nixarr/home.nix
Normal file
11
hosts/nixarr/home.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
../../home/base.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home.stateVersion = "25.05";
|
||||||
|
}
|
||||||
@@ -254,9 +254,15 @@
|
|||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
containers.enable = true;
|
containers.enable = true;
|
||||||
|
docker = {
|
||||||
|
enable = true;
|
||||||
|
rootless = {
|
||||||
|
enable = true;
|
||||||
|
setSocketVariable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
podman = {
|
podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dockerCompat = true;
|
|
||||||
defaultNetwork.settings = {
|
defaultNetwork.settings = {
|
||||||
dns_enabled = true;
|
dns_enabled = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user