Compare commits
16 Commits
e1c1f6e104
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| af54219f5f | |||
| b6f59055d8 | |||
| cb990c0cd4 | |||
| c896e02bf1 | |||
| c1e031efa9 | |||
| 19f213ca8c | |||
| a0ebb3f259 | |||
| 3a994a3b8d | |||
| 3b4c0e4a63 | |||
| b15dd4ce86 | |||
| db5514062c | |||
| 7b500ee994 | |||
| 07eb4664f9 | |||
| 872f80e92c | |||
| 562f873f97 | |||
| 2f5868fcca |
@@ -1,7 +1,12 @@
|
|||||||
#+title: My dotfiles
|
#+title: My dotfiles
|
||||||
|
|
||||||
My dotfiles for which I am using =nix=.
|
* Quick start for home-manger only (no need to pull this repo)
|
||||||
The structure is managed by [[https://snowfall.org/guides/lib/quickstart/][Snowfall lib]]
|
- 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
|
||||||
|
#+end_src
|
||||||
|
- Done
|
||||||
|
|
||||||
* Machine selection
|
* Machine selection
|
||||||
=home-manager= automatically searches for =user= or =user@hostname= config in the flake, so specify one of those or you will have to manually specify them:
|
=home-manager= automatically searches for =user= or =user@hostname= config in the flake, so specify one of those or you will have to manually specify them:
|
||||||
|
|||||||
103
flake.lock
generated
103
flake.lock
generated
@@ -58,11 +58,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766150702,
|
"lastModified": 1768923567,
|
||||||
"narHash": "sha256-P0kM+5o+DKnB6raXgFEk3azw8Wqg5FL6wyl9jD+G5a4=",
|
"narHash": "sha256-GVJ0jKsyXLuBzRMXCDY6D5J8wVdwP1DuQmmvYL/Vw/Q=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "916506443ecd0d0b4a0f4cf9d40a3c22ce39b378",
|
"rev": "00395d188e3594a1507f214a2f15d4ce5c07cb28",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -203,11 +203,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767619900,
|
"lastModified": 1768603898,
|
||||||
"narHash": "sha256-KpoCBPvwHz3gAQtIUkohE2InRBFK3r0/FM6z5SPWfvM=",
|
"narHash": "sha256-vRV1dWJOCpCal3PRr86wE2WTOMfAhTu6G7bSvOsryUo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6bd04da47cfb48dfd15eabf08364b78ad894f5b2",
|
"rev": "2a63d0e9d2c72ac4d4150ebb242cf8d86f488c8c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -217,13 +217,38 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"impermanence": {
|
"home-manager_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"impermanence",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737831083,
|
"lastModified": 1768598210,
|
||||||
"narHash": "sha256-LJggUHbpyeDvNagTUrdhe/pRVp4pnS6wVKALS782gRI=",
|
"narHash": "sha256-kkgA32s/f4jaa4UG+2f8C225Qvclxnqs76mf8zvTVPg=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "c47b2cc64a629f8e075de52e4742de688f930dc6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"impermanence": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": "home-manager_2",
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1768835187,
|
||||||
|
"narHash": "sha256-6nY0ixjGjPQCL+/sUC1B1MRiO1LOI3AkRSIywm3i3bE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "impermanence",
|
"repo": "impermanence",
|
||||||
"rev": "4b3e914cdf97a5b536a889e939fb2fd2b043a170",
|
"rev": "0d633a69480bb3a3e2f18c080d34a8fa81da6395",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -284,7 +309,7 @@
|
|||||||
},
|
},
|
||||||
"naersk": {
|
"naersk": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736429655,
|
"lastModified": 1736429655,
|
||||||
@@ -400,11 +425,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767185284,
|
"lastModified": 1768736227,
|
||||||
"narHash": "sha256-ljDBUDpD1Cg5n3mJI81Hz5qeZAwCGxon4kQW3Ho3+6Q=",
|
"narHash": "sha256-qgGq7CfrYKc3IBYQ7qp0Z/ZXndQVC5Bj0N8HW9mS2rM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "40b1a28dce561bea34858287fbb23052c3ee63fe",
|
"rev": "d447553bcbc6a178618d37e61648b19e744370df",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -446,11 +471,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767379071,
|
"lastModified": 1768564909,
|
||||||
"narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
|
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fb7944c166a3b630f177938e478f0378e64ce108",
|
"rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -461,6 +486,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1768564909,
|
||||||
|
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 0,
|
"lastModified": 0,
|
||||||
"narHash": "sha256-DjkQPnkAfd7eB522PwnkGhOMuT9QVCZspDpJJYyOj60=",
|
"narHash": "sha256-DjkQPnkAfd7eB522PwnkGhOMuT9QVCZspDpJJYyOj60=",
|
||||||
@@ -472,13 +513,13 @@
|
|||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767480499,
|
"lastModified": 1768773494,
|
||||||
"narHash": "sha256-8IQQUorUGiSmFaPnLSo2+T+rjHtiNWc+OAzeHck7N48=",
|
"narHash": "sha256-XsM7GP3jHlephymxhDE+/TKKO1Q16phz/vQiLBGhpF4=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "30a3c519afcf3f99e2c6df3b359aec5692054d92",
|
"rev": "77ef7a29d276c6d8303aece3444d61118ef71ac2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -498,11 +539,11 @@
|
|||||||
"systems": "systems_5"
|
"systems": "systems_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767448089,
|
"lastModified": 1768486829,
|
||||||
"narHash": "sha256-U1fHsZBnFrUil731NHD9Sg5HoiG+eSHau8OFuClhwW0=",
|
"narHash": "sha256-G621Q9cB1roQxK0C6guNjmWX0CmPA5xN46VD2kTdDEk=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "983751b66f255bbea1adc185364e9e7b73f82358",
|
"rev": "503259b749971f431cb4aca7099cd60eadd7a613",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -547,7 +588,7 @@
|
|||||||
"nix-matlab": "nix-matlab",
|
"nix-matlab": "nix-matlab",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"sheet-organizer": "sheet-organizer",
|
"sheet-organizer": "sheet-organizer",
|
||||||
@@ -585,11 +626,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767499857,
|
"lastModified": 1768863606,
|
||||||
"narHash": "sha256-0zUU/PW09d6oBaR8x8vMHcAhg1MOvo3CwoXgHijzzNE=",
|
"narHash": "sha256-1IHAeS8WtBiEo5XiyJBHOXMzECD6aaIOJmpQKzRRl64=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "ecc41505948ec2ab0325f14c9862a4329c2b4190",
|
"rev": "c7067be8db2c09ab1884de67ef6c4f693973f4a2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -724,11 +765,11 @@
|
|||||||
"yazi-flavors": {
|
"yazi-flavors": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767573407,
|
"lastModified": 1768756605,
|
||||||
"narHash": "sha256-RrF97Lg9v0LV+XseJw4RrdbXlv+LJzfooOgqHD+LGcw=",
|
"narHash": "sha256-xGnebGuSOZpQl/QhuZkwgrjfAlfbEtruA9UVe030mZM=",
|
||||||
"owner": "yazi-rs",
|
"owner": "yazi-rs",
|
||||||
"repo": "flavors",
|
"repo": "flavors",
|
||||||
"rev": "4a1802a5add0f867b08d5890780c10dd1f051c36",
|
"rev": "ca6165818bb84d46af5fd8f95bedd2b1c395890a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
60
flake.nix
60
flake.nix
@@ -100,12 +100,12 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Piano raspberry pi
|
# Piano raspberry pi
|
||||||
pianonix = lib.nixosSystem {
|
# pianonix = lib.nixosSystem {
|
||||||
modules = [./hosts/pianonix];
|
# modules = [./hosts/pianonix];
|
||||||
specialArgs = {
|
# specialArgs = {
|
||||||
inherit inputs outputs;
|
# inherit inputs outputs;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
kardorf = lib.nixosSystem {
|
kardorf = lib.nixosSystem {
|
||||||
modules = [./hosts/kardorf];
|
modules = [./hosts/kardorf];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
@@ -134,16 +134,16 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Media server (RPi)
|
# Media server (RPi)
|
||||||
"julian@pianonix" = lib.homeManagerConfiguration {
|
# "julian@pianonix" = lib.homeManagerConfiguration {
|
||||||
modules = [
|
# modules = [
|
||||||
./homes/julian/pianonix.nix
|
# ./homes/julian/pianonix.nix
|
||||||
./homes/julian/hm-standalone-config.nix
|
# ./homes/julian/hm-standalone-config.nix
|
||||||
];
|
# ];
|
||||||
pkgs = pkgsFor.aarch64-linux;
|
# pkgs = pkgsFor.aarch64-linux;
|
||||||
extraSpecialArgs = {
|
# extraSpecialArgs = {
|
||||||
inherit inputs outputs;
|
# inherit inputs outputs;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
"julian@kardorf" = lib.homeManagerConfiguration {
|
"julian@kardorf" = lib.homeManagerConfiguration {
|
||||||
modules = [
|
modules = [
|
||||||
./homes/julian/kardorf.nix
|
./homes/julian/kardorf.nix
|
||||||
@@ -164,19 +164,29 @@
|
|||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"julian@quickstart" = lib.homeManagerConfiguration {
|
||||||
|
modules = [
|
||||||
|
./homes/julian/quickstart.nix
|
||||||
|
./homes/julian/hm-standalone-config.nix
|
||||||
|
];
|
||||||
|
pkgs = pkgsFor.x86_64-linux;
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit inputs outputs;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# deploy-rs node configuration
|
# deploy-rs node configuration
|
||||||
deploy.nodes = {
|
deploy.nodes = {
|
||||||
pianonix = {
|
# pianonix = {
|
||||||
hostname = "pianonix.local";
|
# hostname = "pianonix.local";
|
||||||
profiles.system = {
|
# profiles.system = {
|
||||||
sshUser = "root";
|
# sshUser = "root";
|
||||||
user = "root";
|
# user = "root";
|
||||||
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.pianonix;
|
# path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.pianonix;
|
||||||
confirmTimeout = 90; # default: 30s; raspberrypi takes a little longer restarting services
|
# confirmTimeout = 90; # default: 30s; raspberrypi takes a little longer restarting services
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
builder = {
|
builder = {
|
||||||
hostname = "builder.julian-mutter.de";
|
hostname = "builder.julian-mutter.de";
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ with lib; {
|
|||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.zoxide = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@@ -38,14 +43,14 @@ with lib; {
|
|||||||
cd $argv
|
cd $argv
|
||||||
'';
|
'';
|
||||||
run = ''
|
run = ''
|
||||||
nix run nixpkgs#"$argv[1]" -- $argv[2..-1]
|
nix run --impure nixpkgs#"$argv[1]" -- $argv[2..-1]
|
||||||
'';
|
'';
|
||||||
shell = ''
|
shell = ''
|
||||||
set args
|
set args
|
||||||
for arg in $argv
|
for arg in $argv
|
||||||
set args $args nixpkgs#$arg
|
set args $args nixpkgs#$arg
|
||||||
end
|
end
|
||||||
nix shell $args
|
nix shell --impure $args
|
||||||
'';
|
'';
|
||||||
fish_user_key_bindings = ''
|
fish_user_key_bindings = ''
|
||||||
bind ctrl-space 'zi; commandline -f repaint'
|
bind ctrl-space 'zi; commandline -f repaint'
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; {
|
with lib; {
|
||||||
|
|||||||
@@ -281,6 +281,7 @@ in {
|
|||||||
"workspace 1, class:firefox"
|
"workspace 1, class:firefox"
|
||||||
"workspace 8, class:Zotero"
|
"workspace 8, class:Zotero"
|
||||||
"workspace 9, class:nheko"
|
"workspace 9, class:nheko"
|
||||||
|
"workspace 9, class:Element"
|
||||||
"workspace 9, class:discord"
|
"workspace 9, class:discord"
|
||||||
"workspace 9, class:org.telegram.desktop"
|
"workspace 9, class:org.telegram.desktop"
|
||||||
"workspace 10, class:thunderbird"
|
"workspace 10, class:thunderbird"
|
||||||
@@ -314,15 +315,15 @@ in {
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
"$mod, R, submap, resize"
|
"$mod, R, submap, resize"
|
||||||
"$mod, SPACE, submap, open"
|
"$mod, O, submap, open"
|
||||||
#
|
#
|
||||||
|
|
||||||
"$mod, V, focuswindow, floating"
|
"$mod, SPACE, focuswindow, floating"
|
||||||
"$mod SHIFT, V, togglefloating,"
|
"$mod SHIFT, SPACE, togglefloating,"
|
||||||
"$mod, F, fullscreen,"
|
"$mod, F, fullscreen,"
|
||||||
"$mod, X, killactive,"
|
"$mod, X, killactive,"
|
||||||
|
|
||||||
"$mod, O, togglesplit," # dwindle
|
"$mod, -, togglesplit," # dwindle
|
||||||
|
|
||||||
# opening applications
|
# opening applications
|
||||||
"$mod, D, exec, wofi --show drun,run"
|
"$mod, D, exec, wofi --show drun,run"
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
@@ -91,7 +90,7 @@
|
|||||||
# Code formatting
|
# Code formatting
|
||||||
conform-nvim = {
|
conform-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.formatters_by_ft = with pkgs; {
|
settings.formatters_by_ft = {
|
||||||
lua = ["stylua"];
|
lua = ["stylua"];
|
||||||
python = ["black"];
|
python = ["black"];
|
||||||
nix = ["nixfmt"];
|
nix = ["nixfmt"];
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
telegram-desktop # telegram
|
telegram-desktop # telegram
|
||||||
# schildichat-desktop # not updated regularly
|
# schildichat-desktop # not updated regularly
|
||||||
nheko
|
nheko
|
||||||
|
element-desktop
|
||||||
evince # Simple pdf reader, good for focusing on document content
|
evince # Simple pdf reader, good for focusing on document content
|
||||||
firefox
|
firefox
|
||||||
# geogebra
|
# geogebra
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
programs.opencode = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.unstable.opencode;
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
watchexec # Run command when any file in current dir changes
|
watchexec # Run command when any file in current dir changes
|
||||||
android-tools # adb
|
android-tools # adb
|
||||||
|
|||||||
@@ -3,9 +3,6 @@
|
|||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.zoxide.enable = true;
|
|
||||||
programs.zoxide.enableFishIntegration = true;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
exiftool
|
exiftool
|
||||||
unar # extract archives
|
unar # extract archives
|
||||||
|
|||||||
@@ -24,6 +24,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# To allow unfree with 'nix run'
|
||||||
|
xdg.configFile."nixpkgs/config.nix".text = ''
|
||||||
|
{ allowUnfree = true; }
|
||||||
|
'';
|
||||||
|
|
||||||
colorscheme.name = "catppuccin-mocha";
|
colorscheme.name = "catppuccin-mocha";
|
||||||
|
|
||||||
# systemd.user.startServices = "sd-switch"; # TODO: what is this
|
# systemd.user.startServices = "sd-switch"; # TODO: what is this
|
||||||
|
|||||||
32
homes/julian/quickstart.nix
Normal file
32
homes/julian/quickstart.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# Quick configuration for setting up basic things on a standalone home-manager device
|
||||||
|
# If you want to adapt it to a specific device, copy this file with the correct hostname
|
||||||
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./global
|
||||||
|
|
||||||
|
./features/fish
|
||||||
|
./features/direnv
|
||||||
|
./features/neovim
|
||||||
|
./features/yazi
|
||||||
|
./features/emacs
|
||||||
|
./features/nix-helper
|
||||||
|
./features/tmux
|
||||||
|
];
|
||||||
|
|
||||||
|
is-nixos = false;
|
||||||
|
|
||||||
|
home.sessionPath = ["/snap/bin"];
|
||||||
|
|
||||||
|
# Essential packages
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
bat
|
||||||
|
dust
|
||||||
|
fd
|
||||||
|
ripgrep
|
||||||
|
fzf
|
||||||
|
lazygit
|
||||||
|
mc
|
||||||
|
tree
|
||||||
|
wget
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -101,10 +101,17 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Ollama used by open-webui as llm backend
|
# Ollama used by open-webui as llm backend
|
||||||
# services.ollama = {
|
services.ollama = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# # acceleration = "rocm";
|
# acceleration = "rocm";
|
||||||
# };
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nextjs-ollama-llm-ui = {
|
||||||
|
enable = true;
|
||||||
|
hostname = "192.168.3.118";
|
||||||
|
port = 3001;
|
||||||
|
};
|
||||||
# services.open-webui = {
|
# services.open-webui = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# port = 8080;
|
# port = 8080;
|
||||||
@@ -114,6 +121,7 @@
|
|||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
|
3001 # ollama-ui
|
||||||
];
|
];
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
|
|||||||
@@ -2,19 +2,19 @@
|
|||||||
# For every flake input, aliases 'pkgs.inputs.${flake}' to
|
# For every flake input, aliases 'pkgs.inputs.${flake}' to
|
||||||
# 'inputs.${flake}.packages.${pkgs.system}' or
|
# 'inputs.${flake}.packages.${pkgs.system}' or
|
||||||
# 'inputs.${flake}.legacyPackages.${pkgs.system}'
|
# 'inputs.${flake}.legacyPackages.${pkgs.system}'
|
||||||
flake-inputs = final: _: {
|
# flake-inputs = final: _: {
|
||||||
inputs =
|
# inputs =
|
||||||
builtins.mapAttrs (
|
# builtins.mapAttrs (
|
||||||
_: flake: let
|
# _: flake: let
|
||||||
legacyPackages = (flake.legacyPackages or {}).${final.system} or {};
|
# legacyPackages = (flake.legacyPackages or {}).${final.system} or {};
|
||||||
packages = (flake.packages or {}).${final.system} or {};
|
# packages = (flake.packages or {}).${final.system} or {};
|
||||||
in
|
# in
|
||||||
if legacyPackages != {}
|
# if legacyPackages != {}
|
||||||
then legacyPackages
|
# then legacyPackages
|
||||||
else packages
|
# else packages
|
||||||
)
|
# )
|
||||||
inputs;
|
# inputs;
|
||||||
};
|
# };
|
||||||
|
|
||||||
input-flake-packages = final: prev: {
|
input-flake-packages = final: prev: {
|
||||||
sheet-organizer = inputs.sheet-organizer.packages.${prev.system}.default; # TODO: change sheet-organizer package output
|
sheet-organizer = inputs.sheet-organizer.packages.${prev.system}.default; # TODO: change sheet-organizer package output
|
||||||
@@ -26,11 +26,11 @@
|
|||||||
|
|
||||||
nixpkgs-stable-unstable = final: prev: {
|
nixpkgs-stable-unstable = final: prev: {
|
||||||
unstable = import inputs.nixpkgs-unstable {
|
unstable = import inputs.nixpkgs-unstable {
|
||||||
system = prev.system;
|
system = prev.stdenv.hostPlatform.system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
stable = import inputs.nixpkgs {
|
stable = import inputs.nixpkgs {
|
||||||
system = prev.system;
|
system = prev.stdenv.hostPlatform.system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -16,6 +16,6 @@
|
|||||||
typst-languagetool = pkgs.callPackage ./typst-languagetool {};
|
typst-languagetool = pkgs.callPackage ./typst-languagetool {};
|
||||||
pob2-frajul = pkgs.callPackage ./pob2-frajul {};
|
pob2-frajul = pkgs.callPackage ./pob2-frajul {};
|
||||||
|
|
||||||
rpi-ws281x-python = pkgs.callPackage ./rpi-ws281x-python {};
|
# rpi-ws281x-python = pkgs.callPackage ./rpi-ws281x-python {};
|
||||||
piano-led-visualizer = pkgs.callPackage ./piano-led-visualizer {};
|
# piano-led-visualizer = pkgs.callPackage ./piano-led-visualizer {};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
writeShellApplication,
|
writeShellApplication,
|
||||||
nheko,
|
element-desktop,
|
||||||
telegram-desktop,
|
telegram-desktop,
|
||||||
thunderbird,
|
thunderbird,
|
||||||
discord, # TODO: discord not available for aarch64, this leads to flake evaluation for this arch fail.
|
discord, # TODO: discord not available for aarch64, this leads to flake evaluation for this arch fail.
|
||||||
@@ -9,7 +9,7 @@ writeShellApplication {
|
|||||||
name = "open-messaging";
|
name = "open-messaging";
|
||||||
|
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
nheko
|
element-desktop
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
thunderbird
|
thunderbird
|
||||||
discord
|
discord
|
||||||
@@ -18,7 +18,7 @@ writeShellApplication {
|
|||||||
text = ''
|
text = ''
|
||||||
thunderbird &
|
thunderbird &
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
nheko &
|
element-desktop &
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
Telegram &
|
Telegram &
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user