Create host-specific folder

This commit is contained in:
2024-02-27 09:47:30 +01:00
parent 539464e12a
commit 78992b130b
8 changed files with 25 additions and 10 deletions

7
system/default.nix Normal file
View File

@@ -0,0 +1,7 @@
{
imports = [
./podman.nix
./fonts.nix
./users.nix
];
}

7
system/fonts.nix Normal file
View File

@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
fonts.packages = with pkgs; [
fira-code
fira-code-symbols
];
}

10
system/podman.nix Normal file
View File

@@ -0,0 +1,10 @@
{ pkgs, ...}:
{
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
};
};
}

46
system/users.nix Normal file
View File

@@ -0,0 +1,46 @@
{ pkgs, ...}:
{
programs.zsh.enable = true;
environment.shells = with pkgs; [ zsh ];
# Setup torjus user
users.users.torjus = {
isNormalUser = true;
home = "/home/torjus";
description = "Torjus";
shell = pkgs.zsh;
extraGroups = [ "wheel" "networkmanager" ];
# Install some user packages
packages = with pkgs; [
# Browser
firefox
# Editors
vscode
# Python stuff
python3
ruff
poetry
# Go stuff
go
delve
gopls
# Generic stuff
tokei
ripgrep
jq
# Hyprland stuff
rofi-wayland
swaylock
waybar
dunst
slurp
wpaperd
];
};
}