Compare commits

...

12 commits

Author SHA1 Message Date
e596e8cb9a
flake: Add nix-init to devshell 2024-03-11 17:53:56 +01:00
ceb4f2ff11
emacs: Don't set services.emacs.defaultEditor 2024-03-11 17:53:35 +01:00
9d87464447
eww: Update workspaces script to new nushell syntax 2024-03-11 17:53:12 +01:00
66389a861d
nushell: Disable net plugin due to incompatibility with nushell 0.91 2024-03-11 17:52:37 +01:00
5c583faab2
vscode: Replace rnix-lsp with nil 2024-03-11 17:52:20 +01:00
4b6c062870
fonts: Update iosevka aile build plan name 2024-03-11 17:52:01 +01:00
964eb2d6a1
Set default editor 2024-03-11 17:51:52 +01:00
2026cc9248
home: Add wine 2024-03-11 17:51:36 +01:00
7b82251c57
Add gitu 2024-03-11 17:49:47 +01:00
323b0291df
Formatting 2024-03-11 17:47:04 +01:00
e8006179f8
flake.lock: Update
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/72818e54ec29427f8d9f9cfa6fc859d01ca6dc66' (2024-03-09)
  → 'github:nix-community/disko/d389901567d9ceda5a1a833fbf8e8e254e18eb0a' (2024-03-11)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/aed9a9e58391a498c2ed2b5bbd0b59ec3d862f6d' (2024-03-09)
  → 'github:nix-community/emacs-overlay/65f195e937a170adac199b12eab303b8488bf38b' (2024-03-11)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/2be119add7b37dc535da2dd4cba68e2cf8d1517e' (2024-03-08)
  → 'github:NixOS/nixpkgs/b94a96839afcc56de3551aa7472b8d9a3e77e05d' (2024-03-09)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/d465f4819400de7c8d874d50b982301f28a84605' (2024-02-28)
  → 'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
• Updated input 'home-manager':
    'github:nix-community/home-manager/16311f1d3c518656f680b7d09e29e37826f9802e' (2024-03-09)
  → 'github:nix-community/home-manager/36f873dfc8e2b6b89936ff3e2b74803d50447e0a' (2024-03-10)
• Updated input 'microvm':
    'github:astro/microvm.nix/8b4539658e09b3c35adda0c4c7bb491aa29dcfef' (2024-03-08)
  → 'github:astro/microvm.nix/30e577e95ba469ba0d0c08e64e81604b1d097f9c' (2024-03-10)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/59e37017b9ed31dee303dbbd4531c594df95cfbc' (2024-03-02)
  → 'github:NixOS/nixos-hardware/ad2fd7b978d5e462048729a6c635c45d3d33c9ba' (2024-03-11)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/9df3e30ce24fd28c7b3e2de0d986769db5d6225d' (2024-03-06)
  → 'github:nixos/nixpkgs/3030f185ba6a4bf4f18b87f345f104e6a6961f34' (2024-03-09)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/d3a05d053b145349b8ad395741c5951f332280ef' (2024-03-09)
  → 'github:oxalica/rust-overlay/73aca260afe5d41d3ebce932c8d896399c9d5174' (2024-03-11)
• Updated input 'sops':
    'github:Mic92/sops-nix/25dd60fdd08fcacee2567a26ba6b91fe098941dc' (2024-03-06)
  → 'github:Mic92/sops-nix/f8d5c8baa83fe620a28c0db633be9db3e34474b4' (2024-03-10)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/66d65cb00b82ffa04ee03347595aa20e41fe3555' (2024-03-03)
  → 'github:NixOS/nixpkgs/b17375d3bb7c79ffc52f3538028b2ec06eb79ef8' (2024-03-10)
2024-03-11 09:40:09 +01:00
2ca74329de
flake.lock: Update
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/a2009bc2b4e1d3ff5360048292deb0d610aa064b' (2024-03-07)
  → 'github:nix-community/disko/72818e54ec29427f8d9f9cfa6fc859d01ca6dc66' (2024-03-09)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/6cd7ddb6c8a8ac4b2bfb35ca3261d3e689740c8e' (2024-03-08)
  → 'github:nix-community/emacs-overlay/aed9a9e58391a498c2ed2b5bbd0b59ec3d862f6d' (2024-03-09)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/880992dcc006a5e00dd0591446fdf723e6a51a64' (2024-03-05)
  → 'github:NixOS/nixpkgs/2be119add7b37dc535da2dd4cba68e2cf8d1517e' (2024-03-08)
• Updated input 'home-manager':
    'github:nix-community/home-manager/cf111d1a849ddfc38e9155be029519b0e2329615' (2024-03-06)
  → 'github:nix-community/home-manager/16311f1d3c518656f680b7d09e29e37826f9802e' (2024-03-09)
• Updated input 'microvm':
    'github:astro/microvm.nix/7f93206b22131aac8fa46d787696ea58460aecab' (2024-03-01)
  → 'github:astro/microvm.nix/8b4539658e09b3c35adda0c4c7bb491aa29dcfef' (2024-03-08)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/e5ab9ee98f479081ad971473d2bc13c59e9fbc0a' (2024-03-08)
  → 'github:oxalica/rust-overlay/d3a05d053b145349b8ad395741c5951f332280ef' (2024-03-09)
2024-03-09 13:50:08 +01:00
12 changed files with 130 additions and 83 deletions

66
flake.lock generated
View file

@ -124,11 +124,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709773529, "lastModified": 1710119954,
"narHash": "sha256-CNz9ybeR88j8QQxy7YNFa8RlNq3pWnXLvocWIt2n5Mg=", "narHash": "sha256-e7AMYtBQgRzeRtn//k1dXu22xeiav+G0cQjm3gEky7o=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "a2009bc2b4e1d3ff5360048292deb0d610aa064b", "rev": "d389901567d9ceda5a1a833fbf8e8e254e18eb0a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -148,11 +148,11 @@
"nixpkgs-stable": "nixpkgs-stable_2" "nixpkgs-stable": "nixpkgs-stable_2"
}, },
"locked": { "locked": {
"lastModified": 1709862236, "lastModified": 1710121508,
"narHash": "sha256-i/0IUNU2q11tTTYK6HCdJn+YV2vly08PMCRiN2Ksjr4=", "narHash": "sha256-lOfYN1BMBNarx3Nvcro6EEXq+ZSUHyhc2WJJdWACwoA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "6cd7ddb6c8a8ac4b2bfb35ca3261d3e689740c8e", "rev": "65f195e937a170adac199b12eab303b8488bf38b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -324,11 +324,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1709126324, "lastModified": 1710146030,
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=", "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "d465f4819400de7c8d874d50b982301f28a84605", "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -414,11 +414,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709764752, "lastModified": 1710062421,
"narHash": "sha256-+lM4J4JoJeiN8V+3WSWndPHj1pJ9Jc1UMikGbXLqCTk=", "narHash": "sha256-FiCNRfyUgJOLYIokLiFsfI7B+Zn9HDnOzFR3uVr5qsQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "cf111d1a849ddfc38e9155be029519b0e2329615", "rev": "36f873dfc8e2b6b89936ff3e2b74803d50447e0a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -438,11 +438,11 @@
"spectrum": "spectrum" "spectrum": "spectrum"
}, },
"locked": { "locked": {
"lastModified": 1709297667, "lastModified": 1710080963,
"narHash": "sha256-5JUaHyRFKDPqyeTlbMFS6VixAWRkO5uCRTS8asEjiyo=", "narHash": "sha256-E1qvw0/ZfJfVDMysc5EN7g8wD/0j2uF3a1efVxz7pWk=",
"owner": "astro", "owner": "astro",
"repo": "microvm.nix", "repo": "microvm.nix",
"rev": "7f93206b22131aac8fa46d787696ea58460aecab", "rev": "30e577e95ba469ba0d0c08e64e81604b1d097f9c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -521,11 +521,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1709410583, "lastModified": 1710123225,
"narHash": "sha256-esOSUoQ7mblwcsSea0K17McZuwAIjoS6dq/4b83+lvw=", "narHash": "sha256-j3oWlxRZxB7cFsgEntpH3rosjFHRkAo/dhX9H3OfxtY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "59e37017b9ed31dee303dbbd4531c594df95cfbc", "rev": "ad2fd7b978d5e462048729a6c635c45d3d33c9ba",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -586,11 +586,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1709677081, "lastModified": 1710021367,
"narHash": "sha256-tix36Y7u0rkn6mTm0lA45b45oab2cFLqAzDbJxeXS+c=", "narHash": "sha256-FuMVdWqXMT38u1lcySYyv93A7B8wU0EGzUr4t4jQu8g=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "880992dcc006a5e00dd0591446fdf723e6a51a64", "rev": "b94a96839afcc56de3551aa7472b8d9a3e77e05d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -618,11 +618,11 @@
}, },
"nixpkgs-stable_4": { "nixpkgs-stable_4": {
"locked": { "locked": {
"lastModified": 1709428628, "lastModified": 1710033658,
"narHash": "sha256-//ZCCnpVai/ShtO2vPjh3AWgo8riXCaret6V9s7Hew4=", "narHash": "sha256-yiZiVKP5Ya813iYLho2+CcFuuHpaqKc/CoxOlANKcqM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "66d65cb00b82ffa04ee03347595aa20e41fe3555", "rev": "b17375d3bb7c79ffc52f3538028b2ec06eb79ef8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -634,11 +634,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1709703039, "lastModified": 1709961763,
"narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=", "narHash": "sha256-6H95HGJHhEZtyYA3rIQpvamMKAGoa8Yh2rFV29QnuGw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d", "rev": "3030f185ba6a4bf4f18b87f345f104e6a6961f34",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -762,11 +762,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709863839, "lastModified": 1710123130,
"narHash": "sha256-QpEL5FmZNi2By3sKZY55wGniFXc4wEn9PQczlE8TG0o=", "narHash": "sha256-EoGL/WSM1M2L099Q91mPKO/FRV2iu2ZLOEp3y5sLfiE=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "e5ab9ee98f479081ad971473d2bc13c59e9fbc0a", "rev": "73aca260afe5d41d3ebce932c8d896399c9d5174",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -783,11 +783,11 @@
"nixpkgs-stable": "nixpkgs-stable_4" "nixpkgs-stable": "nixpkgs-stable_4"
}, },
"locked": { "locked": {
"lastModified": 1709711091, "lastModified": 1710039806,
"narHash": "sha256-L0rSIU9IguTG4YqSj4B/02SyTEz55ACq5t8gXpzteYc=", "narHash": "sha256-vC2fo/phnetp6ub/nRv6mgAi5LbhJ6ujGQWrRD2VgNs=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "25dd60fdd08fcacee2567a26ba6b91fe098941dc", "rev": "f8d5c8baa83fe620a28c0db633be9db3e34474b4",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -158,24 +158,19 @@
overlays.default = import ./overlays; overlays.default = import ./overlays;
nixosModules = builtins.listToAttrs ( nixosModules = builtins.listToAttrs (
map map (x: {
(x: {
name = x; name = x;
value = import (./modules + "/${x}"); value = import (./modules + "/${x}");
}) }) (builtins.attrNames (builtins.readDir ./modules))
(builtins.attrNames (builtins.readDir ./modules))
); );
nixosConfigurations = builtins.listToAttrs ( nixosConfigurations = builtins.listToAttrs (
map map (machine: {
(machine: {
name = machine; name = machine;
value = value = self.lib.defSystem (machines.${machine}.system or "x86_64-linux") {
self.lib.defSystem (machines.${machine}.system or "x86_64-linux") imports = [ machines.${machine}.config ];
{ imports = [ machines.${machine}.config ]; } } (machines.${machine}.deploy or null);
(machines.${machine}.deploy or null); }) (builtins.attrNames machines)
})
(builtins.attrNames machines)
); );
colmena = colmena =
@ -189,8 +184,7 @@
}; };
} }
// builtins.listToAttrs ( // builtins.listToAttrs (
map map (machine: {
(machine: {
name = machine; name = machine;
value = { value = {
deployment = { deployment = {
@ -199,12 +193,10 @@
# targetUser = machines.${machine}.deploy.sshUser; # targetUser = machines.${machine}.deploy.sshUser;
tags = machines.${machine}.deploy.tags or [ ]; tags = machines.${machine}.deploy.tags or [ ];
}; };
imports = imports = self.lib.systemModules (machines.${machine}.system or "x86_64-linux"
self.lib.systemModules (machines.${machine}.system or "x86_64-linux") ) machines.${machine}.config;
machines.${machine}.config;
}; };
}) }) (builtins.filter (machine: machines.${machine} ? deploy) (builtins.attrNames machines))
(builtins.filter (machine: machines.${machine} ? deploy) (builtins.attrNames machines))
); );
}; };
@ -239,6 +231,7 @@
packages = { packages = {
incus-ui = pkgs.callPackage ./pkgs/incus-ui { }; incus-ui = pkgs.callPackage ./pkgs/incus-ui { };
openfga = pkgs.callPackage ./pkgs/openfga { }; openfga = pkgs.callPackage ./pkgs/openfga { };
gitu = pkgs.callPackage ./pkgs/gitu { };
}; };
devShells.default = devShells.default =
@ -256,13 +249,14 @@
nodePackages.prettier nodePackages.prettier
multimarkdown multimarkdown
nix-diff nix-diff
nixfmt-rfc-style nix-init
nix-prefetch nix-prefetch
nix-prefetch-docker nix-prefetch-docker
nix-prefetch-github nix-prefetch-github
nix-prefetch-scripts nix-prefetch-scripts
nix-tree nix-tree
nix-top nix-top
nixfmt-rfc-style
openssl openssl
pciutils pciutils
pkgs.sops pkgs.sops

View file

@ -174,7 +174,6 @@ in
package = emacsWithPackages; package = emacsWithPackages;
client.enable = true; client.enable = true;
socketActivation.enable = true; socketActivation.enable = true;
defaultEditor = true;
}; };
home.file."emacs.d/early-init.el".source = tangleEmacsConfig "early-init.el"; home.file."emacs.d/early-init.el".source = tangleEmacsConfig "early-init.el";
@ -194,7 +193,9 @@ in
nodePackages.bash-language-server nodePackages.bash-language-server
aspell aspell
lldb lldb
(nil.overrideAttrs (_: { doCheck = false; })) (nil.overrideAttrs (_: {
doCheck = false;
}))
nixfmt-rfc-style nixfmt-rfc-style
python3 python3
] ]

View file

@ -21,7 +21,7 @@ def is-i3 [] {
} }
export def ipc-cmd [--raw, ...parameters: string] { export def ipc-cmd [--raw, ...parameters: string] {
let result = (run-external --redirect-stdout (ipcCmd) $parameters) let result = (run-external --redirect-stdout (ipcCmd) ...$parameters)
if $raw { if $raw {
$result $result
} else { } else {

View file

@ -176,6 +176,9 @@ in
}; };
}; };
home.packages = [ pkgs.git-credential-manager ]; home.packages = [
pkgs.git-credential-manager
pkgs.gitu
];
}; };
} }

View file

@ -35,7 +35,6 @@ in
register ${pkgs.nushellPlugins.query}/bin/nu_plugin_query register ${pkgs.nushellPlugins.query}/bin/nu_plugin_query
register ${pkgs.nushellPlugins.formats}/bin/nu_plugin_formats register ${pkgs.nushellPlugins.formats}/bin/nu_plugin_formats
register ${pkgs.nushellPlugins.net}/bin/nu_plugin_net
use kink.nu use kink.nu
@ -45,6 +44,7 @@ in
$env.config = ($env.config | merge { color_config: (dracula)}) $env.config = ($env.config | merge { color_config: (dracula)})
''; '';
}; };
# register ${pkgs.nushellPlugins.net}/bin/nu_plugin_net
carapace = { carapace = {
enable = true; enable = true;

View file

@ -83,7 +83,7 @@ in
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
rnix-lsp nil
shellcheck shellcheck
]; ];
}; };

View file

@ -10,7 +10,7 @@ let
iosevka-buildplans = builtins.fromTOML (builtins.readFile "${pkgs.iosevka.src}/build-plans.toml"); iosevka-buildplans = builtins.fromTOML (builtins.readFile "${pkgs.iosevka.src}/build-plans.toml");
iosevka-aile = pkgs.iosevka.override { iosevka-aile = pkgs.iosevka.override {
privateBuildPlan = iosevka-buildplans.buildPlans.iosevka-aile; privateBuildPlan = iosevka-buildplans.buildPlans.IosevkaAile;
set = "aile"; set = "aile";
}; };
in in

View file

@ -44,4 +44,5 @@ _final: prev: {
incus-ui = prev.pkgs.callPackage ../pkgs/incus-ui { }; incus-ui = prev.pkgs.callPackage ../pkgs/incus-ui { };
openfga = prev.pkgs.callPackage ../pkgs/openfga { }; openfga = prev.pkgs.callPackage ../pkgs/openfga { };
gitu = prev.pkgs.callPackage ../pkgs/gitu { };
} }

46
pkgs/gitu/default.nix Normal file
View file

@ -0,0 +1,46 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
libgit2,
openssl,
zlib,
stdenv,
darwin,
git,
}:
rustPlatform.buildRustPackage rec {
pname = "gitu";
version = "0.5.4";
src = fetchFromGitHub {
owner = "altsem";
repo = "gitu";
rev = "v${version}";
hash = "sha256-a4hNgEizxanYE3XuHSCmbV6CkOqhXkznP3Sp0KLFFQs=";
};
cargoHash = "sha256-+CA3UG32oZedzRbt7b0wOlhH/subuym4BCL5SMNzrr8=";
nativeBuildInputs = [
pkg-config
git
];
buildInputs = [
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
meta = with lib; {
description = "A TUI Git client inspired by Magit";
homepage = "https://github.com/altsem/gitu";
changelog = "https://github.com/altsem/gitu/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "gitu";
};
}

View file

@ -177,9 +177,11 @@ in
home = { home = {
username = "erwin"; username = "erwin";
homeDirectory = "/home/erwin"; homeDirectory = "/home/erwin";
sessionVariables = { }; sessionVariables = {
EDITOR = "${config.home-manager.users.erwin.eboskma.programs.emacs.package}/bin/emacsclient -c";
};
stateVersion = "21.11"; stateVersion = "24.05";
packages = packages =
with pkgs; with pkgs;
@ -229,10 +231,10 @@ in
pass pass
pavucontrol pavucontrol
povray povray
quintom-cursor-theme
procs procs
prusa-slicer prusa-slicer
qgis qgis
quintom-cursor-theme
remmina remmina
ripgrep ripgrep
scid-vs-pc scid-vs-pc
@ -246,6 +248,8 @@ in
unzip unzip
vial vial
xdg-utils xdg-utils
wineWowPackages.waylandFull
winetricks
wl-clipboard wl-clipboard
zeal zeal
] ]

View file

@ -43,12 +43,10 @@ let
let let
output = if name == "right" then "DP-1" else "DP-3"; output = if name == "right" then "DP-1" else "DP-3";
in in
builtins.map builtins.map (ws: {
(ws: {
inherit output; inherit output;
workspace = toString ws; workspace = toString ws;
}) }) workspaces
workspaces
) )
(builtins.partition (n: (trivial.mod n 2) != 0) (lists.range 1 10)) (builtins.partition (n: (trivial.mod n 2) != 0) (lists.range 1 10))
@ -233,9 +231,9 @@ in
username = "erwin"; username = "erwin";
homeDirectory = "/home/erwin"; homeDirectory = "/home/erwin";
sessionVariables = { sessionVariables = {
# EDITOR = "${config.home-manager.users.erwin.eboskma.programs.emacs.package}/bin/emacsclient -c"; EDITOR = "${config.home-manager.users.erwin.eboskma.programs.emacs.package}/bin/emacsclient -c";
}; };
stateVersion = "22.11"; stateVersion = "24.05";
packages = packages =
with pkgs; with pkgs;