Compare commits

...

1 Commits

Author SHA1 Message Date
307fe7b05d feat(rusty): minimal host configuration 2025-11-08 11:31:06 -03:00
2 changed files with 76 additions and 0 deletions

View File

@@ -8,6 +8,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
disko = {
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = { stylix = {
url = "github:danth/stylix/release-25.05"; url = "github:danth/stylix/release-25.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -134,6 +139,19 @@
./home/guz-lite/configuration.nix ./home/guz-lite/configuration.nix
]; ];
}; };
"rusty" = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = {
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfreePredicate = _: true;
};
inherit inputs self;
};
modules = [
./hosts/rusty/configuration.nix
];
};
}; };
homeConfigurations = forAllSystems ({ homeConfigurations = forAllSystems ({

View File

@@ -0,0 +1,58 @@
{
lib,
inputs,
...
}: {
imports = [
../../configuration.nix
inputs.disko.nixosModules.disko
];
# Network
networking = {
hostName = lib.mkForce "rusty";
#wireless.enable = lib.mkForce true;
};
disko.devices.disk.main = {
device = "/dev/sda"; # This will be overwritten by disko-install
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1M";
end = "500M";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot/efi";
mountOptions = ["dmask=0022" "fmask=0022" "nofail"];
};
}
{
name = "root";
start = "500M";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
}