fixed errors
This commit is contained in:
parent
4fe3976a16
commit
b5ced09741
@ -1,30 +1,34 @@
|
|||||||
{ device }:
|
{ mainDisk }:
|
||||||
|
|
||||||
{
|
{
|
||||||
disk.main = {
|
disk.main = {
|
||||||
type = "disk";
|
device = mainDisk;
|
||||||
inherit device;
|
type = "disk";
|
||||||
|
|
||||||
content = {
|
content = {
|
||||||
type = "msdos";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
root = {
|
MBR = {
|
||||||
size = "100%";
|
size = "1M";
|
||||||
content = {
|
type = "EF02";
|
||||||
type = "btrfs";
|
};
|
||||||
extraArgs = [ "-f" ];
|
root = {
|
||||||
subvolumes = {
|
size = "100%";
|
||||||
"@root" = { mountpoint = "/"; };
|
content = {
|
||||||
"@nix" = { mountpoint = "/nix"; };
|
type = "btrfs";
|
||||||
"@var" = { mountpoint = "/var"; };
|
extraArgs = [ "-f" ];
|
||||||
"@docker" = { mountpoint = "/var/lib/docker"; };
|
subvolumes = {
|
||||||
"@home" = { mountpoint = "/home"; };
|
"@root" = { mountpoint = "/"; };
|
||||||
"@snapshots" = { mountpoint = "/.snapshots"; };
|
"@nix" = { mountpoint = "/nix"; };
|
||||||
|
"@var" = { mountpoint = "/var"; };
|
||||||
|
"@docker" = { mountpoint = "/var/lib/docker"; };
|
||||||
|
"@home" = { mountpoint = "/home"; };
|
||||||
|
"@snapshots" = { mountpoint = "/.snapshots"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
62
flake.lock
generated
Normal file
62
flake.lock
generated
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"disko": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1766150702,
|
||||||
|
"narHash": "sha256-P0kM+5o+DKnB6raXgFEk3azw8Wqg5FL6wyl9jD+G5a4=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "disko",
|
||||||
|
"rev": "916506443ecd0d0b4a0f4cf9d40a3c22ce39b378",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "disko",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1763618868,
|
||||||
|
"narHash": "sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r+JerayK/4wvdWA=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "a8d610af3f1a5fb71e23e08434d8d61a466fc942",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1765838191,
|
||||||
|
"narHash": "sha256-m5KWt1nOm76ILk/JSCxBM4MfK3rYY7Wq9/TZIIeGnT8=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c6f52ebd45e5925c188d1a20119978aa4ffd5ef6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-25.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"disko": "disko",
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@ -6,11 +6,11 @@
|
|||||||
disko.url = "github:nix-community/disko";
|
disko.url = "github:nix-community/disko";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs, disko }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
release = "25.11";
|
release = "25.11";
|
||||||
mainDisk = "/dev/sda";
|
mainDisk = "/dev/sdc";
|
||||||
myUser = "victor";
|
myUser = "victor";
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
@ -18,7 +18,7 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit release mainDisk myUser; };
|
specialArgs = { inherit release mainDisk myUser; };
|
||||||
modules = [
|
modules = [
|
||||||
inputs.disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
|
|
||||||
./hosts/isengard.nix
|
./hosts/isengard.nix
|
||||||
./modules/base.nix
|
./modules/base.nix
|
||||||
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
({ ... }: {
|
({ ... }: {
|
||||||
disko.devices = import ./disko/btrfs-legacy.nix {
|
disko.devices = import ./disko/btrfs-legacy.nix {
|
||||||
device = mainDisk;
|
inherit mainDisk;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|||||||
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
device = mainDisk;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@ -1,10 +1,13 @@
|
|||||||
{ config, myUser, ... }:
|
{ config, myUser, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
virtualization.docker.rootless = {
|
users.users.myUser.extraGroups = [ "docker" ];
|
||||||
enable = true;
|
|
||||||
setSocketVariable = true;
|
virtualisation.docker = {
|
||||||
storageDriver = "btrfs";
|
storageDriver = "btrfs";
|
||||||
users.users.myUser.extraGroups = [ "docker" ];
|
rootless = {
|
||||||
}
|
enable = true;
|
||||||
|
setSocketVariable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user