mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
new host, rinnosuke
This commit is contained in:
parent
57815057f6
commit
48fb151e60
2 changed files with 91 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
std,
|
std,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (std) set;
|
inherit (std) set;
|
||||||
|
|
@ -37,6 +38,7 @@ in {
|
||||||
plugins = let
|
plugins = let
|
||||||
pluginsToGen = [
|
pluginsToGen = [
|
||||||
"lspconfig"
|
"lspconfig"
|
||||||
|
"treesitter"
|
||||||
"cmp"
|
"cmp"
|
||||||
"cmp-clippy"
|
"cmp-clippy"
|
||||||
"cmp-cmdline"
|
"cmp-cmdline"
|
||||||
|
|
@ -54,7 +56,29 @@ in {
|
||||||
autoLoad = true;
|
autoLoad = true;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
genAttrs pluginsToGen (_: basePlugin);
|
set.merge [
|
||||||
|
(genAttrs pluginsToGen (_: basePlugin))
|
||||||
|
{
|
||||||
|
treesitter = {
|
||||||
|
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
|
||||||
|
bash
|
||||||
|
json
|
||||||
|
make
|
||||||
|
markdown
|
||||||
|
regex
|
||||||
|
toml
|
||||||
|
xml
|
||||||
|
yaml
|
||||||
|
gleam
|
||||||
|
nix
|
||||||
|
];
|
||||||
|
settings = {
|
||||||
|
highlight.enable = true;
|
||||||
|
indent.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
diagnostic.settings = {
|
diagnostic.settings = {
|
||||||
virtual_text = true;
|
virtual_text = true;
|
||||||
virtual_lines = true;
|
virtual_lines = true;
|
||||||
|
|
|
||||||
66
systems/rinnosuke.nix
Normal file
66
systems/rinnosuke.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
||||||
|
_: let
|
||||||
|
hostConfig = {
|
||||||
|
lib,
|
||||||
|
modulesPath,
|
||||||
|
tree,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
]
|
||||||
|
++ (with tree.nixos.profiles; [
|
||||||
|
server
|
||||||
|
]);
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
|
||||||
|
kernelModules = ["kvm-amd"];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" = {
|
||||||
|
device = "/dev/disk/by-uuid/d7419452-7f03-40f1-ba9b-74d81cf2436a";
|
||||||
|
fsType = "xfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
"/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/8B8C-6502";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = ["fmask=0777" "dmask=0777"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{device = "/dev/disk/by-uuid/08b6efda-1bb5-4698-abae-fbfa8bff84fe";}
|
||||||
|
];
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
interfaces.ens18.ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "154.12.117.50";
|
||||||
|
prefixLength = 27;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
defaultGateway = "154.12.117.33";
|
||||||
|
nameservers = [
|
||||||
|
"1.1.1.1"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
arch = "x86_64";
|
||||||
|
type = "NixOS";
|
||||||
|
deploy.hostname = "154.12.117.50";
|
||||||
|
colmena.tags = [
|
||||||
|
"server"
|
||||||
|
];
|
||||||
|
modules = [
|
||||||
|
hostConfig
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue