This commit is contained in:
alisceon 2025-07-29 11:25:40 +02:00
parent 715835d743
commit 09e7e65d91
6 changed files with 108 additions and 94 deletions

2
.gitignore vendored
View file

@ -10,3 +10,5 @@ devenv.local.nix
# pre-commit # pre-commit
.pre-commit-config.yaml .pre-commit-config.yaml
# clamav
.clamav

View file

@ -1,22 +1,11 @@
{ pkgs, lib, config, inputs, ... }: { pkgs, lib, config, inputs, ... }:
{ {
# https://devenv.sh/basics/
env.GREET = "devenv";
# https://devenv.sh/packages/ packages = [
packages = [ pkgs.git ]; pkgs.git
];
# https://devenv.sh/languages/
# languages.rust.enable = true;
# https://devenv.sh/processes/
# processes.cargo-watch.exec = "cargo-watch";
# https://devenv.sh/services/
# services.postgres.enable = true;
# https://devenv.sh/scripts/
scripts.hello.exec = '' scripts.hello.exec = ''
echo hello from $GREET echo hello from $GREET
''; '';
@ -26,20 +15,8 @@
git --version git --version
''; '';
# https://devenv.sh/tasks/
# tasks = {
# "myproj:setup".exec = "mytool build";
# "devenv:enterShell".after = [ "myproj:setup" ];
# };
# https://devenv.sh/tests/
enterTest = '' enterTest = ''
echo "Running tests" echo "Running tests"
nix flake check --all-systems nix flake check --all-systems
''; '';
# https://devenv.sh/git-hooks/
# git-hooks.hooks.shellcheck.enable = true;
# See full reference at https://devenv.sh/reference/options/
} }

View file

@ -28,8 +28,8 @@
# Development commands # Development commands
devt = "devenv test"; devt = "devenv test";
devs = "devenv shell"; devs = "devenv shell";
devu = "devenv up"; devu = "devenv up -d";
devi = "nix flake init -t path:/home/alisceon/Templates/devenv#python"; devi = "nix flake init -t templates#";
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/";

View file

@ -2,16 +2,37 @@
{ {
system.stateVersion = "24.05"; system.stateVersion = "24.05";
nix.settings = { system.autoUpgrade = {
enable = true;
persistent = true;
flake = "/home/alisceon/.nixos_config";
flags = [
"--update-input"
"nixpkgs"
"-L"
];
dates = "daily";
}; # end system.autoUpgrade
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true; auto-optimise-store = true;
trusted-users = [ "root" "alisceon" ]; trusted-users = [ "root" "alisceon" ];
}; # end nix settings }; # end settings
nix.gc = { gc = {
automatic = true; automatic = true;
dates = "weekly"; persistent = true;
options = "--delete-older-than 7d"; dates = "daily";
}; # end nix gc options = "--delete-older-than 3d";
}; # end gc
registry = {
templates.to = {
type = "git";
url = "git+ssh://git@git.malice.zone/alisceon/devenv_templates.git";
};
}; #end registry
}; #end nix
console.keyMap = "sv-latin1"; console.keyMap = "sv-latin1";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -51,20 +72,6 @@
}; };
}; # end services }; # end services
environment.gnome.excludePackages = with pkgs; [
evolution
geary
gnome-contacts
gnome-music
gnome-user-docs
gnome-tour
gnome-weather
gnome-maps
gnome-calendar
gnome-initial-setup
gnome-clocks
];
services.fwupd.enable = true; services.fwupd.enable = true;
programs = { programs = {
dconf.enable = true; dconf.enable = true;
@ -75,7 +82,8 @@
}; };
}; # end programs }; # end programs
environment.systemPackages = with pkgs; [ environment = {
systemPackages = with pkgs; [
# CLI tools # CLI tools
git git
wget wget
@ -113,19 +121,33 @@
krita krita
edk2-uefi-shell edk2-uefi-shell
obsidian obsidian
]; ]; # end systemPackages
environment.shells = with pkgs; [ fish ]; gnome.excludePackages = with pkgs; [
evolution
geary
gnome-contacts
gnome-music
gnome-user-docs
gnome-tour
gnome-weather
gnome-maps
gnome-calendar
gnome-initial-setup
gnome-clocks
]; # end gnome.excludePackages
shells = with pkgs; [ fish ];
}; # end environment
virtualisation.podman = { virtualisation.podman = {
enable = true; enable = true;
dockerCompat = true; dockerCompat = true;
defaultNetwork.settings.dns_enabled = true; defaultNetwork.settings.dns_enabled = true;
}; }; # end virtualisation
users.users.alisceon = { users.users.alisceon = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "podman" ]; extraGroups = [ "wheel" "networkmanager" "podman" ];
shell = pkgs.fish; shell = pkgs.fish;
}; }; # end users
} } #end file

View file

@ -36,4 +36,17 @@
loader.timeout = 0; loader.timeout = 0;
#resumeDevice = "/dev/disk/by-uuid/c49249b9-0d68-44af-97e0-e399c8409408"; #resumeDevice = "/dev/disk/by-uuid/c49249b9-0d68-44af-97e0-e399c8409408";
}; };
systemd.services = {
fprintd = {
wantedBy = [ "multi-user.target" ];
serviceConfig.Type = "simple";
};
};
services = {
fprintd = {
enable = true;
tod.enable = true;
tod.driver = pkgs.libfprint-2-tod1-goodix;
};
};
} }

View file