Compare commits
2 Commits
fbfb89280b
...
d0231fb379
Author | SHA1 | Date | |
---|---|---|---|
d0231fb379 | |||
ed47f7b1bf |
@ -105,6 +105,9 @@
|
||||
# Web host
|
||||
malcolm = normalSys "malcolm" { };
|
||||
|
||||
# General application server
|
||||
morn = normalSys "morn" { };
|
||||
|
||||
# Home desktop
|
||||
sisko = normalSys "sisko" {
|
||||
};
|
||||
|
@ -50,7 +50,7 @@ in {
|
||||
" Integrate status with lightline
|
||||
let g:lightline = {
|
||||
\ 'active': {
|
||||
\ 'left': [[ 'coc_info', 'coc_hints', 'coc_errors', 'coc_warnings', 'coc_ok' ], [ 'coc_status' ]]
|
||||
\ 'left': [[ 'mode', 'paste', 'filename', 'readonly', 'coc_info', 'coc_hints', 'coc_errors', 'coc_warnings', 'coc_ok' ], [ 'coc_status' ]]
|
||||
\ }
|
||||
\ }
|
||||
|
||||
@ -132,6 +132,9 @@ in {
|
||||
|
||||
" Start with copilot disabled
|
||||
let g:copilot_enabled = 0
|
||||
|
||||
" Start with Coc disabled
|
||||
" autocmd VimEnter * CocDisable
|
||||
'';
|
||||
};
|
||||
|
||||
|
28
hosts/morn/configuration.nix
Normal file
28
hosts/morn/configuration.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
../../base.nix
|
||||
../../common/metrics-exporters.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "morn";
|
||||
defaultGateway = "192.168.10.1";
|
||||
interfaces.ens18.ipv4 = {
|
||||
addresses = [
|
||||
{ address = "192.168.10.202"; prefixLength = 24; }
|
||||
];
|
||||
};
|
||||
hostId = "89b7722d";
|
||||
};
|
||||
|
||||
sops.defaultSopsFile = ../../secrets/burnham/burnham.yaml;
|
||||
|
||||
environment.variables = { EDITOR = "vim"; };
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
30
hosts/morn/hardware-configuration.nix
Normal file
30
hosts/morn/hardware-configuration.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/31ff6d37-52d6-43c3-a214-5d38a6c38b0e";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/cce59ee7-7c83-4165-a9b0-f950cd2e3273"; }
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
#networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
12
hosts/morn/home.nix
Normal file
12
hosts/morn/home.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./../../home/base.nix
|
||||
];
|
||||
|
||||
programs = {
|
||||
zsh.shellAliases."rebuild" = "sudo nixos-rebuild switch --flake /config";
|
||||
};
|
||||
|
||||
home.stateVersion = "24.11";
|
||||
}
|
Loading…
Reference in New Issue
Block a user