develing
This commit is contained in:
parent
715835d743
commit
09e7e65d91
6 changed files with 108 additions and 94 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -10,3 +10,5 @@ devenv.local.nix
|
||||||
# pre-commit
|
# pre-commit
|
||||||
.pre-commit-config.yaml
|
.pre-commit-config.yaml
|
||||||
|
|
||||||
|
# clamav
|
||||||
|
.clamav
|
||||||
29
devenv.nix
29
devenv.nix
|
|
@ -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/
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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/";
|
||||||
|
|
||||||
|
|
|
||||||
144
hosts/common.nix
144
hosts/common.nix
|
|
@ -2,16 +2,37 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
nix.settings = {
|
system.autoUpgrade = {
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
enable = true;
|
||||||
auto-optimise-store = true;
|
persistent = true;
|
||||||
trusted-users = [ "root" "alisceon" ];
|
flake = "/home/alisceon/.nixos_config";
|
||||||
}; # end nix settings
|
flags = [
|
||||||
nix.gc = {
|
"--update-input"
|
||||||
automatic = true;
|
"nixpkgs"
|
||||||
dates = "weekly";
|
"-L"
|
||||||
options = "--delete-older-than 7d";
|
];
|
||||||
}; # end nix gc
|
dates = "daily";
|
||||||
|
}; # end system.autoUpgrade
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
auto-optimise-store = true;
|
||||||
|
trusted-users = [ "root" "alisceon" ];
|
||||||
|
}; # end settings
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
persistent = true;
|
||||||
|
dates = "daily";
|
||||||
|
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,57 +82,72 @@
|
||||||
};
|
};
|
||||||
}; # end programs
|
}; # end programs
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment = {
|
||||||
# CLI tools
|
systemPackages = with pkgs; [
|
||||||
git
|
# CLI tools
|
||||||
wget
|
git
|
||||||
curl
|
wget
|
||||||
btop
|
curl
|
||||||
ripgrep
|
btop
|
||||||
bat
|
ripgrep
|
||||||
fd
|
bat
|
||||||
eza
|
fd
|
||||||
bash
|
eza
|
||||||
|
bash
|
||||||
|
|
||||||
# Chat
|
# Chat
|
||||||
discord
|
discord
|
||||||
signal-desktop
|
signal-desktop
|
||||||
|
|
||||||
# Browser
|
# Browser
|
||||||
firefox
|
firefox
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
vscode
|
vscode
|
||||||
devenv
|
devenv
|
||||||
direnv
|
direnv
|
||||||
|
|
||||||
# Virtualization
|
# Virtualization
|
||||||
podman
|
podman
|
||||||
|
|
||||||
# GNOME tweaks and extensions
|
# GNOME tweaks and extensions
|
||||||
gnome-tweaks
|
gnome-tweaks
|
||||||
dconf-editor
|
dconf-editor
|
||||||
gnomeExtensions.ddterm
|
gnomeExtensions.ddterm
|
||||||
|
|
||||||
# Other
|
# Other
|
||||||
syncthing
|
syncthing
|
||||||
steam
|
steam
|
||||||
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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue