Compare commits

48 Commits

Author SHA1 Message Date
Gitea Actions
ae8979ecac Update flake.lock 2025-04-28 2026-03-16 00:30:41 +00:00
Gitea Actions
6ac05c77b0 Update flake.lock 2025-04-27 2026-03-16 00:30:41 +00:00
Gitea Actions
f10670f2be Update flake.lock 2025-04-26 2026-03-16 00:30:41 +00:00
Gitea Actions
123612e4b3 Update flake.lock 2025-04-25 2026-03-16 00:30:41 +00:00
Gitea Actions
b67666ac19 Update flake.lock 2025-04-24 2026-03-16 00:30:41 +00:00
Gitea Actions
c403e02878 Update flake.lock 2025-04-23 2026-03-16 00:30:41 +00:00
Gitea Actions
6b3d94e787 Update flake.lock 2025-04-22 2026-03-16 00:30:41 +00:00
Gitea Actions
4802dcc0e0 Update flake.lock 2025-04-21 2026-03-16 00:30:41 +00:00
Gitea Actions
3fec4d8c72 Update flake.lock 2025-04-20 2026-03-16 00:30:41 +00:00
Gitea Actions
1390c1ca8b Update flake.lock 2025-04-19 2026-03-16 00:30:41 +00:00
Gitea Actions
cb024f6f11 Update flake.lock 2025-04-18 2026-03-16 00:30:41 +00:00
Gitea Actions
04684dcf6b Update flake.lock 2025-04-17 2026-03-16 00:30:41 +00:00
Gitea Actions
e57a577182 Update flake.lock 2025-04-16 2026-03-16 00:30:41 +00:00
Gitea Actions
4cbf77ef20 Update flake.lock 2025-04-15 2026-03-16 00:30:41 +00:00
Gitea Actions
f338454ef1 Update flake.lock 2025-04-14 2026-03-16 00:30:41 +00:00
Gitea Actions
f0c6c990e4 Update flake.lock 2025-04-13 2026-03-16 00:30:41 +00:00
Gitea Actions
0f4e26660e Update flake.lock 2025-04-12 2026-03-16 00:30:41 +00:00
Gitea Actions
844e698dfb Update flake.lock 2025-04-11 2026-03-16 00:30:41 +00:00
Gitea Actions
8d72ed2b3b Update flake.lock 2025-04-10 2026-03-16 00:30:41 +00:00
Gitea Actions
1713a086a1 Update flake.lock 2025-04-09 2026-03-16 00:30:41 +00:00
Gitea Actions
79c944f7a8 Update flake.lock 2025-04-08 2026-03-16 00:30:41 +00:00
Gitea Actions
222849e75c Update flake.lock 2025-04-07 2026-03-16 00:30:41 +00:00
Gitea Actions
d6c07272e7 Update flake.lock 2025-04-06 2026-03-16 00:30:41 +00:00
Gitea Actions
5014f64ed7 Update flake.lock 2025-04-05 2026-03-16 00:30:41 +00:00
Gitea Actions
a9a023a8ff Update flake.lock 2025-04-04 2026-03-16 00:30:41 +00:00
Gitea Actions
e0613fafa1 Update flake.lock 2025-04-03 2026-03-16 00:30:41 +00:00
Gitea Actions
20679985ad Update flake.lock 2025-04-02 2026-03-16 00:30:41 +00:00
Gitea Actions
2b41d1934e Update flake.lock 2025-04-01 2026-03-16 00:30:41 +00:00
Gitea Actions
0da9684522 Update flake.lock 2025-03-31 2026-03-16 00:30:41 +00:00
Gitea Actions
d16e295469 Update flake.lock 2025-03-30 2026-03-16 00:30:41 +00:00
Gitea Actions
1c4116bc3d Update flake.lock 2025-03-29 2026-03-16 00:30:41 +00:00
Gitea Actions
03c9db6ea4 Update flake.lock 2025-03-28 2026-03-16 00:30:41 +00:00
Gitea Actions
3188aeb85f Update flake.lock 2025-03-27 2026-03-16 00:30:41 +00:00
Gitea Actions
0fbdf4f481 Update flake.lock 2025-03-26 2026-03-16 00:30:41 +00:00
Gitea Actions
4102e76f44 Update flake.lock 2025-03-25 2026-03-16 00:30:41 +00:00
Gitea Actions
e41f2cbf7d Update flake.lock 2025-03-24 2026-03-16 00:30:41 +00:00
Gitea Actions
511755748e Update flake.lock 2025-03-23 2026-03-16 00:30:41 +00:00
349181f35b Add wireshark config
Some checks failed
Update Nix Flake / update-flake (push) Failing after 15s
2026-03-15 09:54:11 +01:00
0b8b7564a1 Make nix gc explicitly persistent
Some checks failed
Update Nix Flake / update-flake (push) Failing after 15s
2026-03-13 08:14:07 +01:00
54e0f94af5 Add garbage-collect for home-manager 2026-03-13 07:51:57 +01:00
977aa539a3 Update flake
Some checks failed
Update Nix Flake / update-flake (push) Failing after 15s
2026-03-12 07:35:43 +01:00
d56605e37a Add nix-index-database and comma 2026-03-12 07:34:13 +01:00
7d013c83bc Uninstall rtklib
Some checks failed
Update Nix Flake / update-flake (push) Failing after 11s
2026-02-14 06:40:39 +01:00
d42f38531d Update flake 2026-02-14 06:40:33 +01:00
af54219f5f Install element-desktop too
Some checks failed
Update Nix Flake / update-flake (push) Failing after 11s
2026-01-24 16:37:09 +01:00
b6f59055d8 Fix quickstart.nix 2026-01-24 16:36:04 +01:00
cb990c0cd4 Switch to element-desktop 2026-01-24 16:35:54 +01:00
c896e02bf1 Allow unfree packages with "run" and "shell" commands
Some checks failed
Update Nix Flake / update-flake (push) Failing after 16s
2026-01-22 06:56:06 +01:00
17 changed files with 858 additions and 102 deletions

View File

@@ -4,7 +4,7 @@
- Install nix using the https://github.com/DeterminateSystems/nix-installer
- Then run
#+begin_src shell
nix run nixpkgs#home-manager switch --flake git+https://gitlab.julian-mutter.de/julian/dotfiles.git#julian@quickstart
nix run nixpkgs#home-manager -- switch --flake git+https://gitlab.julian-mutter.de/julian/dotfiles.git#julian@quickstart
#+end_src
- Done

821
flake.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -19,6 +19,10 @@
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
@@ -94,7 +98,9 @@
nixosConfigurations = {
# Main laptop
aspi = lib.nixosSystem {
modules = [./hosts/aspi];
modules = [
./hosts/aspi
];
specialArgs = {
inherit inputs outputs;
};
@@ -166,7 +172,7 @@
};
"julian@quickstart" = lib.homeManagerConfiguration {
modules = [
./homes/julian/quickstart
./homes/julian/quickstart.nix
./homes/julian/hm-standalone-config.nix
];
pkgs = pkgsFor.x86_64-linux;

View File

@@ -43,14 +43,14 @@ with lib; {
cd $argv
'';
run = ''
nix run nixpkgs#"$argv[1]" -- $argv[2..-1]
nix run --impure nixpkgs#"$argv[1]" -- $argv[2..-1]
'';
shell = ''
set args
for arg in $argv
set args $args nixpkgs#$arg
end
nix shell $args
nix shell --impure $args
'';
fish_user_key_bindings = ''
bind ctrl-space 'zi; commandline -f repaint'

View File

@@ -281,6 +281,7 @@ in {
"workspace 1, class:firefox"
"workspace 8, class:Zotero"
"workspace 9, class:nheko"
"workspace 9, class:Element"
"workspace 9, class:discord"
"workspace 9, class:org.telegram.desktop"
"workspace 10, class:thunderbird"

View File

@@ -19,7 +19,6 @@
links2 # Tui web-browser
lnav # log analyzing tool
mc # Tui file browser
# nix-index
nmap
p7zip # unzip 7zip archives
parted

View File

@@ -30,6 +30,7 @@
telegram-desktop # telegram
# schildichat-desktop # not updated regularly
nheko
element-desktop
evince # Simple pdf reader, good for focusing on document content
firefox
# geogebra

View File

@@ -68,7 +68,7 @@
## My scripts
frajul.deploy-to-pianopi
frajul.rtklib
# frajul.rtklib
(pkgs.writeShellScriptBin "matlab-rsp" ''
matlab -desktop -sd "/home/julian/git/uwa-channel-model" -softwareopengl

View File

@@ -2,6 +2,7 @@
lib,
pkgs,
config,
inputs,
outputs,
...
}: {
@@ -9,6 +10,7 @@
[
../features/fonts
../features/nix-helper
inputs.nix-index-database.homeModules.default # nix-locate
]
++ (builtins.attrValues outputs.homeManagerModules);
@@ -24,13 +26,28 @@
};
};
# To allow unfree with 'nix run'
xdg.configFile."nixpkgs/config.nix".text = ''
{ allowUnfree = true; }
'';
colorscheme.name = "catppuccin-mocha";
# systemd.user.startServices = "sd-switch"; # TODO: what is this
# Expire old hm generations
hm-expire = {
enable = true;
dates = "weekly";
expire = "-30 days";
};
programs = {
home-manager.enable = true;
git.enable = true;
nix-index.enable = true; # allows command-not-found
nix-index-database.comma.enable = true;
};
home = {

View File

@@ -39,6 +39,20 @@
"ca-derivations"
];
# Expire old hm generations
hm-expire = {
enable = true;
dates = "weekly";
expire = "-30 days";
};
# Remove unused packets
services.nix-gc = {
enable = true;
automatic = true;
frequency = "weekly";
persistent = true;
};
# nix.settings. # warn-dirty = false; # TODO: do I want this
#
# Ensure we can still build when missing-server is not accessible

View File

@@ -2,15 +2,15 @@
# If you want to adapt it to a specific device, copy this file with the correct hostname
{pkgs, ...}: {
imports = [
../global
./global
../features/fish
../features/direnv
../features/neovim
../features/yazi
../features/emacs
../features/nix-helper
../features/tmux
./features/fish
./features/direnv
./features/neovim
./features/yazi
./features/emacs
./features/nix-helper
./features/tmux
];
is-nixos = false;

View File

@@ -21,6 +21,7 @@
../common/optional/podman.nix
../common/optional/wireguard.nix
../common/optional/wireshark.nix
../common/optional/flatpak.nix
../common/optional/avahi.nix

View File

@@ -1,8 +1,4 @@
{
lib,
outputs,
...
}: {
{outputs, ...}: {
# Apply overlays
nixpkgs = {
# TODO: apply this to hm and nixos without duplicate code
@@ -32,10 +28,12 @@
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
persistent = true;
};
nix.optimise = {
automatic = true;
dates = ["weekly"]; # Optional; allows customizing optimisation schedule
persistent = true;
};
programs.nix-ld.enable = true;

View File

@@ -0,0 +1,9 @@
{
programs.wireshark = {
enable = true;
dumpcap.enable = true;
usbmon.enable = true;
};
users.users.julian.extraGroups = ["wireshark"];
}

View File

@@ -5,4 +5,5 @@
colors = import ./colors.nix;
hostname = import ./hostname.nix;
non-nixos = import ./non-nixos.nix;
hm-expire = import ./hm-expire.nix;
}

View File

@@ -0,0 +1,46 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.hm-expire;
in {
options.hm-expire = {
enable = lib.mkEnableOption "Whether to enable hm-expire";
dates = lib.mkOption {
type = lib.types.str;
default = "weekly";
};
expire = lib.mkOption {
type = lib.types.str;
default = "-30 days";
};
};
config = lib.mkIf cfg.enable {
# This creates a user-level systemd service
systemd.user.services.cleanup-home-manager = {
Unit = {
Description = "Cleanup old Home Manager generations";
};
Service = {
Type = "oneshot";
ExecStart = "${pkgs.bash}/bin/bash -c '${pkgs.home-manager}/bin/home-manager expire-generations \"${cfg.expire}\"'";
};
};
systemd.user.timers.cleanup-home-manager = {
Unit = {
Description = "Weekly cleanup of Home Manager generations";
};
Timer = {
OnCalendar = cfg.dates;
Persistent = true;
};
Install = {
WantedBy = ["timers.target"];
};
};
};
}

View File

@@ -1,6 +1,6 @@
{
writeShellApplication,
nheko,
element-desktop,
telegram-desktop,
thunderbird,
discord, # TODO: discord not available for aarch64, this leads to flake evaluation for this arch fail.
@@ -9,7 +9,7 @@ writeShellApplication {
name = "open-messaging";
runtimeInputs = [
nheko
element-desktop
telegram-desktop
thunderbird
discord
@@ -18,7 +18,7 @@ writeShellApplication {
text = ''
thunderbird &
sleep 0.1
nheko &
element-desktop &
sleep 0.1
Telegram &
sleep 0.1