officially cooked
This commit is contained in:
parent
92f12974fa
commit
9454f9b7dd
8 changed files with 103 additions and 189 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, config, hostName, ... }: {
|
{ pkgs, config, hostName, lib, ... }: {
|
||||||
home.username = "alisceon";
|
home.username = "alisceon";
|
||||||
home.homeDirectory = "/home/alisceon";
|
home.homeDirectory = "/home/alisceon";
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
nixos-switch = "sudo nixos-rebuild switch --flake .#${hostName}";
|
nixos-switch = "sudo nixos-rebuild switch --flake .#${hostName}";
|
||||||
nixos-test = "sudo nixos-rebuild build-vm --flake .#${hostName}";
|
nixos-test = "sudo nixos-rebuild build-vm --flake .#${hostName}";
|
||||||
pypod = "podman run --rm -it --network host -v '.:/run' -w '/run' python /run/";
|
pypod = "podman run --rm -it --network host -v '.:/run' -w '/run' python /run/";
|
||||||
|
weboot = "nix shell nixpkgs#efibootmgr -c sudo efibootmgr -n 0000 && reboot";
|
||||||
};
|
};
|
||||||
}; # end fish
|
}; # end fish
|
||||||
git = {
|
git = {
|
||||||
|
|
@ -31,7 +32,6 @@
|
||||||
push = { autoSetupRemote = true; };
|
push = { autoSetupRemote = true; };
|
||||||
};
|
};
|
||||||
}; # end git
|
}; # end git
|
||||||
obsidian.enable = true;
|
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
firefox = {
|
firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -77,6 +77,11 @@
|
||||||
}; # end ssh
|
}; # end ssh
|
||||||
}; # end programs
|
}; # end programs
|
||||||
|
|
||||||
|
# obsidian special case
|
||||||
|
programs.obsidian.enable = true;
|
||||||
|
# overide broken config
|
||||||
|
xdg.configFile."obsidian/obsidian.json".source = lib.mkForce ./conf/obsidian.json;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
signal-desktop
|
signal-desktop
|
||||||
discord
|
discord
|
||||||
|
|
@ -101,8 +106,11 @@
|
||||||
picture-options = "zoom";
|
picture-options = "zoom";
|
||||||
primary-color = "#000000000000";
|
primary-color = "#000000000000";
|
||||||
secondary-color = "#000000000000";
|
secondary-color = "#000000000000";
|
||||||
picture-uri = "org.gnome.desktop.background picture-uri 'file:///home/alisceon/Pictures/songbird/Songbird4.png'";
|
picture-uri = "file:///home/alisceon/Pictures/system/bg.png";
|
||||||
picture-uri-dark = "org.gnome.desktop.background picture-uri 'file:///home/alisceon/Pictures/songbird/Songbird4.png'";
|
picture-uri-dark = "file:///home/alisceon/Pictures/system/bg.png";
|
||||||
|
};
|
||||||
|
"org/gnome/mutter" = {
|
||||||
|
auto-maximize = true;
|
||||||
};
|
};
|
||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface" = {
|
||||||
accent-color = "red";
|
accent-color = "red";
|
||||||
|
|
@ -114,20 +122,32 @@
|
||||||
favorite-apps = [
|
favorite-apps = [
|
||||||
"org.gnome.Nautilus.desktop"
|
"org.gnome.Nautilus.desktop"
|
||||||
"firefox.desktop"
|
"firefox.desktop"
|
||||||
"vscode.desktop"
|
"code.desktop"
|
||||||
"obsidian.desktop"
|
"obsidian.desktop"
|
||||||
"discord.desktop"
|
"discord.desktop"
|
||||||
"signal-desktop.desktop"
|
"signal.desktop"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
"org/gnome/shell/keybindings" = {
|
||||||
|
show-screenshot-ui = [ "<Shift><Super>s" ];
|
||||||
|
};
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||||
|
custom-keybindings = [
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
||||||
|
name = "GNOME Console";
|
||||||
|
command = "kgx";
|
||||||
|
binding = "<Shift><Super>Return";
|
||||||
|
};
|
||||||
"com/github/amezin/ddterm" = {
|
"com/github/amezin/ddterm" = {
|
||||||
ddterm-toggle-hotkey = [ "<Super>Return" ];
|
ddterm-toggle-hotkey = [ "<Super>Return" ];
|
||||||
|
window-monitor = "focus";
|
||||||
|
hide-when-focus-lost = true;
|
||||||
|
hide-window-on-esc = true;
|
||||||
|
tab-policy = "never";
|
||||||
|
panel-icon-type = "none";
|
||||||
};
|
};
|
||||||
}; # end dconf.settings
|
}; # end dconf.settings
|
||||||
#overide broken obsidian config
|
|
||||||
xdg.configFile."obsidian/obsidian.json".source = builtins.toPath ./conf/obsidian.json;
|
|
||||||
|
|
||||||
home.file = {
|
|
||||||
|
|
||||||
}; # end home.file
|
|
||||||
} # end file
|
} # end file
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,19 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
system.stateVersion = "24.05";
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
nix.settings.auto-optimise-store = true;
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
|
||||||
|
console.keyMap = "sv-latin1";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
time.timeZone = "Europe/Stockholm";
|
time.timeZone = "Europe/Stockholm";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
LC_ADDRESS = "sv_SE.UTF-8";
|
LC_ADDRESS = "sv_SE.UTF-8";
|
||||||
LC_IDENTIFICATION = "sv_SE.UTF-8";
|
LC_IDENTIFICATION = "sv_SE.UTF-8";
|
||||||
|
|
@ -19,16 +25,29 @@
|
||||||
LC_TELEPHONE = "sv_SE.UTF-8";
|
LC_TELEPHONE = "sv_SE.UTF-8";
|
||||||
LC_TIME = "sv_SE.UTF-8";
|
LC_TIME = "sv_SE.UTF-8";
|
||||||
};
|
};
|
||||||
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
|
services = {
|
||||||
services.displayManager = {
|
printing.enable = true;
|
||||||
gdm.enable = true;
|
pulseaudio.enable = false;
|
||||||
gdm.wayland = true;
|
pipewire = {
|
||||||
};
|
enable = true;
|
||||||
services.desktopManager.gnome.enable = true;
|
alsa.enable = true;
|
||||||
services.xserver.xkb.layout = "se";
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
|
};
|
||||||
|
xserver.xkb.layout = "se";
|
||||||
|
displayManager = {
|
||||||
|
gdm.enable = true;
|
||||||
|
gdm.wayland = true;
|
||||||
|
};
|
||||||
|
desktopManager.gnome.enable = true;
|
||||||
|
gnome = {
|
||||||
|
gnome-keyring.enable = true;
|
||||||
|
gnome-initial-setup.enable = false;
|
||||||
|
};
|
||||||
|
}; # end services
|
||||||
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
environment.gnome.excludePackages = with pkgs; [
|
environment.gnome.excludePackages = with pkgs; [
|
||||||
evolution
|
evolution
|
||||||
geary
|
geary
|
||||||
|
|
@ -43,32 +62,15 @@
|
||||||
gnome-clocks
|
gnome-clocks
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.auto-optimise-store = true;
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 7d";
|
|
||||||
};
|
|
||||||
|
|
||||||
console.keyMap = "sv-latin1";
|
|
||||||
|
|
||||||
services.printing.enable = true;
|
|
||||||
services.pulseaudio.enable = false;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
jack.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
|
dconf.enable = true;
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
};
|
};
|
||||||
};
|
}; # end programs
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# CLI tools
|
# CLI tools
|
||||||
|
|
@ -104,7 +106,10 @@
|
||||||
# Other
|
# Other
|
||||||
syncthing
|
syncthing
|
||||||
steam
|
steam
|
||||||
|
krita
|
||||||
|
edk2-uefi-shell
|
||||||
];
|
];
|
||||||
|
environment.shells = with pkgs; [ fish ];
|
||||||
|
|
||||||
virtualisation.podman = {
|
virtualisation.podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -117,11 +122,5 @@
|
||||||
extraGroups = [ "wheel" "networkmanager" "podman" ];
|
extraGroups = [ "wheel" "networkmanager" "podman" ];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.sudo.wheelNeedsPassword = false;
|
|
||||||
programs.dconf.enable = true;
|
|
||||||
|
|
||||||
environment.shells = with pkgs; [ fish ];
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
verbose = false;
|
verbose = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
plymouth = {
|
plymouth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "rings";
|
theme = "rings";
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,40 @@
|
||||||
imports =
|
imports =
|
||||||
[ ./hardware-configuration.nix ];
|
[ ./hardware-configuration.nix ];
|
||||||
networking.hostName = "tower";
|
networking.hostName = "tower";
|
||||||
|
networking.interfaces.enp10s0.wakeOnLan = {
|
||||||
boot = {
|
enable = true;
|
||||||
loader.systemd-boot.enable = true;
|
|
||||||
loader.efi.canTouchEfiVariables = true;
|
|
||||||
initrd.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
boot.initrd.enable = true;
|
||||||
|
boot.loader = {
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
windows = {
|
||||||
|
"nvme0n1p1" = {
|
||||||
|
title = "Windows";
|
||||||
|
efiDeviceHandle = "FS0";
|
||||||
|
sortKey = "1";
|
||||||
|
};
|
||||||
|
}; #end windows
|
||||||
|
edk2-uefi-shell = {
|
||||||
|
enable = true;
|
||||||
|
sortKey = "0";
|
||||||
|
}; # end edk2-uefi-shell
|
||||||
|
}; # end loader.systemd-boot
|
||||||
|
}; # end boot
|
||||||
|
hardware = {
|
||||||
|
graphics.enable = true;
|
||||||
|
nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = false;
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
open = true;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
}; # end nvidia
|
||||||
|
}; # end hardware
|
||||||
|
services = {
|
||||||
|
xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
openssh.enable = true;
|
||||||
|
}; # end services
|
||||||
|
} # end file
|
||||||
|
|
|
||||||
|
|
@ -1,134 +0,0 @@
|
||||||
{ pkgs, config, hostName, ... }: {
|
|
||||||
home.username = "alisceon";
|
|
||||||
home.homeDirectory = "/home/alisceon";
|
|
||||||
home.stateVersion = "24.05";
|
|
||||||
manual.manpages.enable = true;
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
fish = {
|
|
||||||
enable = true;
|
|
||||||
# Disable greeting
|
|
||||||
interactiveShellInit = ''
|
|
||||||
set fish_greeting
|
|
||||||
'';
|
|
||||||
preferAbbrs = true;
|
|
||||||
shellAbbrs = {
|
|
||||||
ls = "exa";
|
|
||||||
ll = "exa -lah";
|
|
||||||
grep = "rg";
|
|
||||||
cat = "bat";
|
|
||||||
tsla-fan = "ipmitool -H 10.30.0.3 -U ADMIN -P ADMIN raw 0x30 0x70 0x66 0x01 0x0";
|
|
||||||
nixos-switch = "sudo nixos-rebuild switch --flake .#${hostName}";
|
|
||||||
nixos-test = "sudo nixos-rebuild build-vm --flake .#${hostName}";
|
|
||||||
pypod = "podman run --rm -it --network host -v '.:/run' -w '/run' python /run/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "alisceon";
|
|
||||||
userEmail = "alisceon@protonmail.com";
|
|
||||||
extraConfig = {
|
|
||||||
push = { autoSetupRemote = true; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
vscode.enable = true;
|
|
||||||
firefox = {
|
|
||||||
enable = true;
|
|
||||||
nativeMessagingHosts = [
|
|
||||||
pkgs.gnome-browser-connector
|
|
||||||
];
|
|
||||||
};
|
|
||||||
obsidian = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.obsidian;
|
|
||||||
|
|
||||||
vaults = {
|
|
||||||
"Documents/Obsidian/private".enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
bat.enable = true;
|
|
||||||
ssh = {
|
|
||||||
enable = true;
|
|
||||||
matchBlocks = {
|
|
||||||
"alisceon.com" = {
|
|
||||||
hostname = "alisceon.com";
|
|
||||||
user = "opc";
|
|
||||||
};
|
|
||||||
"miscbox" = {
|
|
||||||
hostname = "10.1.0.11";
|
|
||||||
proxyJump = "alisceon.com";
|
|
||||||
user = "opc";
|
|
||||||
};
|
|
||||||
"blogbox" = {
|
|
||||||
hostname = "10.1.0.10";
|
|
||||||
proxyJump = "alisceon.com";
|
|
||||||
user = "ubuntu";
|
|
||||||
};
|
|
||||||
"filurbox" = {
|
|
||||||
hostname = "oci.malice.zone";
|
|
||||||
user = "opc";
|
|
||||||
};
|
|
||||||
"dnspi" = {
|
|
||||||
hostname = "10.40.0.2";
|
|
||||||
user = "pi";
|
|
||||||
};
|
|
||||||
"tsla-exporter-bridge" = {
|
|
||||||
hostname = "alma02.lab.the.malice.zone";
|
|
||||||
user = "root";
|
|
||||||
};
|
|
||||||
"tsla-runner-boi" = {
|
|
||||||
hostname = "alma03.lab.the.malice.zone";
|
|
||||||
user = "root";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
signal-desktop
|
|
||||||
discord
|
|
||||||
eza
|
|
||||||
fd
|
|
||||||
ripgrep
|
|
||||||
];
|
|
||||||
|
|
||||||
xdg = {
|
|
||||||
enable = true;
|
|
||||||
userDirs.enable = true;
|
|
||||||
mime.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.syncthing = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
dconf.enable = true;
|
|
||||||
dconf.settings = {
|
|
||||||
"org/gnome/desktop/background" = {
|
|
||||||
color-shading-type = "solid";
|
|
||||||
picture-options = "zoom";
|
|
||||||
primary-color = "#000000000000";
|
|
||||||
secondary-color = "#000000000000";
|
|
||||||
picture-uri = "org.gnome.desktop.background picture-uri 'file:///home/alisceon/Pictures/songbird/songbird4.jpg'";
|
|
||||||
picture-uri-dark = "org.gnome.desktop.background picture-uri 'file:///home/alisceon/Pictures/songbird/songbird4.jpg'";
|
|
||||||
};
|
|
||||||
"org/gnome/desktop/interface" = {
|
|
||||||
accent-color = "red";
|
|
||||||
color-scheme = "prefer-dark";
|
|
||||||
};
|
|
||||||
"org/gnome/shell" = {
|
|
||||||
disable-user-extensions = false;
|
|
||||||
enabled-extensions = [ pkgs.gnomeExtensions.ddterm.extensionUuid ];
|
|
||||||
favorite-apps = [
|
|
||||||
"org.gnome.Nautilus.desktop"
|
|
||||||
"firefox.desktop"
|
|
||||||
"vscode.desktop"
|
|
||||||
"obsidian.desktop"
|
|
||||||
"discord.desktop"
|
|
||||||
"signal-desktop.desktop"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"com/github/amezin/ddterm" = {
|
|
||||||
ddterm-toggle-hotkey = [ "<Super>Return" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue