Compare commits
6 Commits
f52e880b4c
...
9992039edb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9992039edb | ||
![]() |
f31c0f92da | ||
![]() |
307aac4ae0 | ||
![]() |
160185ef20 | ||
![]() |
42619807bc | ||
![]() |
86c853de20 |
@ -1,4 +1,4 @@
|
||||
{ inputs, ... }:
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
# State version
|
||||
@ -24,6 +24,14 @@
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: Remove once laptop is properly integrated into domain
|
||||
programs.ssh = {
|
||||
package = pkgs.openssh_gssapi;
|
||||
extraConfig = ''
|
||||
GSSAPIAuthentication yes
|
||||
'';
|
||||
};
|
||||
|
||||
# Enable virtualisation for VMs
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
@ -34,12 +42,17 @@
|
||||
usbmon.enable = true;
|
||||
};
|
||||
|
||||
# Enable Nix-LD
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Set up wstunnel client
|
||||
services.wstunnel = {
|
||||
enable = true;
|
||||
clients.wg-tunnel = {
|
||||
connectTo = "wss://tunnel.bulthuis.dev:443";
|
||||
localToRemote = [
|
||||
settings.local-to-remote = [
|
||||
"udp://51820:10.10.40.100:51820"
|
||||
];
|
||||
};
|
||||
|
@ -15,7 +15,7 @@ in
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# TODO: Enable extensions with dconf
|
||||
# TODO: Enable extensions (declaratively) with dconf
|
||||
|
||||
home.pointerCursor = {
|
||||
name = "capitaine-cursors";
|
||||
@ -50,18 +50,30 @@ in
|
||||
file-roller
|
||||
mission-center
|
||||
dconf-editor
|
||||
gnome-calendar
|
||||
|
||||
# For theming gtk3
|
||||
adw-gtk3
|
||||
|
||||
# More icons
|
||||
morewaita-icon-theme
|
||||
]
|
||||
++ (with pkgs.gnomeExtensions; [
|
||||
gsconnect
|
||||
disable-workspace-animation
|
||||
wallpaper-slideshow
|
||||
media-progress
|
||||
# luminus-desktop
|
||||
]);
|
||||
|
||||
# Set up gnome terminal as changing the default terminal is a pain
|
||||
programs.gnome-terminal = {
|
||||
enable = true;
|
||||
profile."12d2da79-b36c-43d5-8e1f-cf70907b84b3" = {
|
||||
visibleName = "Default";
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable and set the gtk themes
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
42
modules/home/development/languages/go.nix
Normal file
42
modules/home/development/languages/go.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.go;
|
||||
in
|
||||
{
|
||||
options.modules.go = {
|
||||
enable = mkEnableOption "go";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# Development packages
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
|
||||
# VSCode configuration
|
||||
programs.vscode = {
|
||||
profiles.default = {
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
golang.go
|
||||
|
||||
];
|
||||
|
||||
userSettings = {
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Neovim configuration
|
||||
# programs.nixvim = {
|
||||
# plugins.rustaceanvim = {
|
||||
# enable = true;
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
@ -28,7 +28,6 @@ in
|
||||
gnome-backgrounds
|
||||
gnome-bluetooth
|
||||
gnome-color-manager
|
||||
gnome-control-center
|
||||
gnome-shell-extensions
|
||||
gnome-tour
|
||||
gnome-user-docs
|
||||
|
65
profiles/disko/workstation.nix
Normal file
65
profiles/disko/workstation.nix
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/sda"; # How do I handle this for laptops
|
||||
imageSize = "64G"; # For test VMs
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
boot = {
|
||||
size = "512M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "umask=0077" ];
|
||||
};
|
||||
};
|
||||
zfs = {
|
||||
end = "-16G";
|
||||
content = {
|
||||
type = "zfs";
|
||||
pool = "tank";
|
||||
};
|
||||
};
|
||||
swap = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "swap";
|
||||
discardPolicy = "both";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
zpool = {
|
||||
tank = {
|
||||
type = "zpool";
|
||||
rootFsOptions = {
|
||||
compression = "zstd";
|
||||
};
|
||||
mountpoint = null;
|
||||
postCreateHook = "zfs snapshot -r tank@blank && zfs hold -r blank tank@blank";
|
||||
|
||||
datasets = {
|
||||
root = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/";
|
||||
};
|
||||
nix = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/nix";
|
||||
};
|
||||
persist = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/persist";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -41,6 +41,7 @@ in
|
||||
obsidian
|
||||
devenv
|
||||
kicad
|
||||
vlc
|
||||
];
|
||||
|
||||
modules = {
|
||||
@ -85,6 +86,7 @@ in
|
||||
cpp.enable = true;
|
||||
tex.enable = true;
|
||||
jupyter.enable = false;
|
||||
go.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user