feat: Added server stuff
This commit is contained in:
@@ -12,7 +12,7 @@ device,
|
|||||||
enable = device.hasGui;
|
enable = device.hasGui;
|
||||||
# the specified packages as well as 1Password CLI will be
|
# the specified packages as well as 1Password CLI will be
|
||||||
# automatically installed and configured to use shell plugins
|
# automatically installed and configured to use shell plugins
|
||||||
plugins = with pkgs; [awscli2 cachix cargo];
|
# plugins = with pkgs; [awscli2 cachix cargo];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
5
flake.lock
generated
5
flake.lock
generated
@@ -688,8 +688,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "flake-utils",
|
"owner": "numtide",
|
||||||
"type": "indirect"
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_4": {
|
"flake-utils_4": {
|
||||||
|
|||||||
17
flake.nix
17
flake.nix
@@ -3,6 +3,7 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -230,7 +231,8 @@
|
|||||||
overlays = import ./overlays.nix {
|
overlays = import ./overlays.nix {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
in rec {
|
in
|
||||||
|
rec {
|
||||||
nixosConfigurations = let
|
nixosConfigurations = let
|
||||||
devices = nixos_devices;
|
devices = nixos_devices;
|
||||||
in
|
in
|
||||||
@@ -311,5 +313,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
// flake-utils.lib.eachDefaultSystem (
|
||||||
|
system: let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
devShells = {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [sops just];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -9,12 +9,14 @@
|
|||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
];
|
];
|
||||||
boot.loader.grub = {
|
boot.loader.systemd-boot.enable = true;
|
||||||
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
# devices = [ ];
|
# boot.loader.grub = {
|
||||||
efiSupport = true;
|
# # no need to set devices, disko will add all devices that have a EF02 partition to the list already
|
||||||
efiInstallAsRemovable = true;
|
# # devices = [ ];
|
||||||
};
|
# efiSupport = true;
|
||||||
|
# efiInstallAsRemovable = true;
|
||||||
|
# };
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = map lib.lowPrio [
|
environment.systemPackages = map lib.lowPrio [
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
boot = {
|
boot = {
|
||||||
size = "512M";
|
size = "1G";
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
content = {
|
content = {
|
||||||
type = "mdraid";
|
type = "mdraid";
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
boot = {
|
boot = {
|
||||||
size = "512M";
|
size = "1G";
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
content = {
|
content = {
|
||||||
type = "mdraid";
|
type = "mdraid";
|
||||||
|
|||||||
4784
server/facter.json
Normal file
4784
server/facter.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Slightly experimental: Like generic, but with nixos-facter (https://github.com/numtide/nixos-facter)
|
# Slightly experimental: Like generic, but with nixos-facter (https://github.com/numtide/nixos-facter)
|
||||||
# nix run github:nix-community/nixos-anywhere -- --flake .#generic-nixos-facter --generate-hardware-config nixos-facter facter.json root@sh.darksailor.dev
|
# nix run github:nix-community/nixos-anywhere -- --flake .#facter --generate-hardware-config nixos-facter facter.json root@sh.darksailor.dev
|
||||||
nixosConfigurations.facter = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.facter = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
|||||||
Reference in New Issue
Block a user