Compare commits
12 commits
2a3f0c0d92
...
e596e8cb9a
Author | SHA1 | Date | |
---|---|---|---|
e596e8cb9a | |||
ceb4f2ff11 | |||
9d87464447 | |||
66389a861d | |||
5c583faab2 | |||
4b6c062870 | |||
964eb2d6a1 | |||
2026cc9248 | |||
7b82251c57 | |||
323b0291df | |||
e8006179f8 | |||
2ca74329de |
12 changed files with 130 additions and 83 deletions
66
flake.lock
generated
66
flake.lock
generated
|
@ -124,11 +124,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709773529,
|
||||
"narHash": "sha256-CNz9ybeR88j8QQxy7YNFa8RlNq3pWnXLvocWIt2n5Mg=",
|
||||
"lastModified": 1710119954,
|
||||
"narHash": "sha256-e7AMYtBQgRzeRtn//k1dXu22xeiav+G0cQjm3gEky7o=",
|
||||
"owner": "nix-community",
|
||||
"repo": "disko",
|
||||
"rev": "a2009bc2b4e1d3ff5360048292deb0d610aa064b",
|
||||
"rev": "d389901567d9ceda5a1a833fbf8e8e254e18eb0a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -148,11 +148,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709862236,
|
||||
"narHash": "sha256-i/0IUNU2q11tTTYK6HCdJn+YV2vly08PMCRiN2Ksjr4=",
|
||||
"lastModified": 1710121508,
|
||||
"narHash": "sha256-lOfYN1BMBNarx3Nvcro6EEXq+ZSUHyhc2WJJdWACwoA=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "6cd7ddb6c8a8ac4b2bfb35ca3261d3e689740c8e",
|
||||
"rev": "65f195e937a170adac199b12eab303b8488bf38b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -324,11 +324,11 @@
|
|||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709126324,
|
||||
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=",
|
||||
"lastModified": 1710146030,
|
||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "d465f4819400de7c8d874d50b982301f28a84605",
|
||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -414,11 +414,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709764752,
|
||||
"narHash": "sha256-+lM4J4JoJeiN8V+3WSWndPHj1pJ9Jc1UMikGbXLqCTk=",
|
||||
"lastModified": 1710062421,
|
||||
"narHash": "sha256-FiCNRfyUgJOLYIokLiFsfI7B+Zn9HDnOzFR3uVr5qsQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "cf111d1a849ddfc38e9155be029519b0e2329615",
|
||||
"rev": "36f873dfc8e2b6b89936ff3e2b74803d50447e0a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -438,11 +438,11 @@
|
|||
"spectrum": "spectrum"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709297667,
|
||||
"narHash": "sha256-5JUaHyRFKDPqyeTlbMFS6VixAWRkO5uCRTS8asEjiyo=",
|
||||
"lastModified": 1710080963,
|
||||
"narHash": "sha256-E1qvw0/ZfJfVDMysc5EN7g8wD/0j2uF3a1efVxz7pWk=",
|
||||
"owner": "astro",
|
||||
"repo": "microvm.nix",
|
||||
"rev": "7f93206b22131aac8fa46d787696ea58460aecab",
|
||||
"rev": "30e577e95ba469ba0d0c08e64e81604b1d097f9c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -521,11 +521,11 @@
|
|||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1709410583,
|
||||
"narHash": "sha256-esOSUoQ7mblwcsSea0K17McZuwAIjoS6dq/4b83+lvw=",
|
||||
"lastModified": 1710123225,
|
||||
"narHash": "sha256-j3oWlxRZxB7cFsgEntpH3rosjFHRkAo/dhX9H3OfxtY=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "59e37017b9ed31dee303dbbd4531c594df95cfbc",
|
||||
"rev": "ad2fd7b978d5e462048729a6c635c45d3d33c9ba",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -586,11 +586,11 @@
|
|||
},
|
||||
"nixpkgs-stable_2": {
|
||||
"locked": {
|
||||
"lastModified": 1709677081,
|
||||
"narHash": "sha256-tix36Y7u0rkn6mTm0lA45b45oab2cFLqAzDbJxeXS+c=",
|
||||
"lastModified": 1710021367,
|
||||
"narHash": "sha256-FuMVdWqXMT38u1lcySYyv93A7B8wU0EGzUr4t4jQu8g=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "880992dcc006a5e00dd0591446fdf723e6a51a64",
|
||||
"rev": "b94a96839afcc56de3551aa7472b8d9a3e77e05d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -618,11 +618,11 @@
|
|||
},
|
||||
"nixpkgs-stable_4": {
|
||||
"locked": {
|
||||
"lastModified": 1709428628,
|
||||
"narHash": "sha256-//ZCCnpVai/ShtO2vPjh3AWgo8riXCaret6V9s7Hew4=",
|
||||
"lastModified": 1710033658,
|
||||
"narHash": "sha256-yiZiVKP5Ya813iYLho2+CcFuuHpaqKc/CoxOlANKcqM=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "66d65cb00b82ffa04ee03347595aa20e41fe3555",
|
||||
"rev": "b17375d3bb7c79ffc52f3538028b2ec06eb79ef8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -634,11 +634,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1709703039,
|
||||
"narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=",
|
||||
"lastModified": 1709961763,
|
||||
"narHash": "sha256-6H95HGJHhEZtyYA3rIQpvamMKAGoa8Yh2rFV29QnuGw=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d",
|
||||
"rev": "3030f185ba6a4bf4f18b87f345f104e6a6961f34",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -762,11 +762,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709863839,
|
||||
"narHash": "sha256-QpEL5FmZNi2By3sKZY55wGniFXc4wEn9PQczlE8TG0o=",
|
||||
"lastModified": 1710123130,
|
||||
"narHash": "sha256-EoGL/WSM1M2L099Q91mPKO/FRV2iu2ZLOEp3y5sLfiE=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "e5ab9ee98f479081ad971473d2bc13c59e9fbc0a",
|
||||
"rev": "73aca260afe5d41d3ebce932c8d896399c9d5174",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -783,11 +783,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709711091,
|
||||
"narHash": "sha256-L0rSIU9IguTG4YqSj4B/02SyTEz55ACq5t8gXpzteYc=",
|
||||
"lastModified": 1710039806,
|
||||
"narHash": "sha256-vC2fo/phnetp6ub/nRv6mgAi5LbhJ6ujGQWrRD2VgNs=",
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"rev": "25dd60fdd08fcacee2567a26ba6b91fe098941dc",
|
||||
"rev": "f8d5c8baa83fe620a28c0db633be9db3e34474b4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
56
flake.nix
56
flake.nix
|
@ -158,24 +158,19 @@
|
|||
overlays.default = import ./overlays;
|
||||
|
||||
nixosModules = builtins.listToAttrs (
|
||||
map
|
||||
(x: {
|
||||
name = x;
|
||||
value = import (./modules + "/${x}");
|
||||
})
|
||||
(builtins.attrNames (builtins.readDir ./modules))
|
||||
map (x: {
|
||||
name = x;
|
||||
value = import (./modules + "/${x}");
|
||||
}) (builtins.attrNames (builtins.readDir ./modules))
|
||||
);
|
||||
|
||||
nixosConfigurations = builtins.listToAttrs (
|
||||
map
|
||||
(machine: {
|
||||
name = machine;
|
||||
value =
|
||||
self.lib.defSystem (machines.${machine}.system or "x86_64-linux")
|
||||
{ imports = [ machines.${machine}.config ]; }
|
||||
(machines.${machine}.deploy or null);
|
||||
})
|
||||
(builtins.attrNames machines)
|
||||
map (machine: {
|
||||
name = machine;
|
||||
value = self.lib.defSystem (machines.${machine}.system or "x86_64-linux") {
|
||||
imports = [ machines.${machine}.config ];
|
||||
} (machines.${machine}.deploy or null);
|
||||
}) (builtins.attrNames machines)
|
||||
);
|
||||
|
||||
colmena =
|
||||
|
@ -189,22 +184,19 @@
|
|||
};
|
||||
}
|
||||
// builtins.listToAttrs (
|
||||
map
|
||||
(machine: {
|
||||
name = machine;
|
||||
value = {
|
||||
deployment = {
|
||||
targetHost = machines.${machine}.deploy.host;
|
||||
targetUser = "root"; # machines.${machine}.deploy.sshUser;
|
||||
# targetUser = machines.${machine}.deploy.sshUser;
|
||||
tags = machines.${machine}.deploy.tags or [ ];
|
||||
};
|
||||
imports =
|
||||
self.lib.systemModules (machines.${machine}.system or "x86_64-linux")
|
||||
machines.${machine}.config;
|
||||
map (machine: {
|
||||
name = machine;
|
||||
value = {
|
||||
deployment = {
|
||||
targetHost = machines.${machine}.deploy.host;
|
||||
targetUser = "root"; # machines.${machine}.deploy.sshUser;
|
||||
# targetUser = machines.${machine}.deploy.sshUser;
|
||||
tags = machines.${machine}.deploy.tags or [ ];
|
||||
};
|
||||
})
|
||||
(builtins.filter (machine: machines.${machine} ? deploy) (builtins.attrNames machines))
|
||||
imports = self.lib.systemModules (machines.${machine}.system or "x86_64-linux"
|
||||
) machines.${machine}.config;
|
||||
};
|
||||
}) (builtins.filter (machine: machines.${machine} ? deploy) (builtins.attrNames machines))
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -239,6 +231,7 @@
|
|||
packages = {
|
||||
incus-ui = pkgs.callPackage ./pkgs/incus-ui { };
|
||||
openfga = pkgs.callPackage ./pkgs/openfga { };
|
||||
gitu = pkgs.callPackage ./pkgs/gitu { };
|
||||
};
|
||||
|
||||
devShells.default =
|
||||
|
@ -256,13 +249,14 @@
|
|||
nodePackages.prettier
|
||||
multimarkdown
|
||||
nix-diff
|
||||
nixfmt-rfc-style
|
||||
nix-init
|
||||
nix-prefetch
|
||||
nix-prefetch-docker
|
||||
nix-prefetch-github
|
||||
nix-prefetch-scripts
|
||||
nix-tree
|
||||
nix-top
|
||||
nixfmt-rfc-style
|
||||
openssl
|
||||
pciutils
|
||||
pkgs.sops
|
||||
|
|
|
@ -174,7 +174,6 @@ in
|
|||
package = emacsWithPackages;
|
||||
client.enable = true;
|
||||
socketActivation.enable = true;
|
||||
defaultEditor = true;
|
||||
};
|
||||
|
||||
home.file."emacs.d/early-init.el".source = tangleEmacsConfig "early-init.el";
|
||||
|
@ -194,7 +193,9 @@ in
|
|||
nodePackages.bash-language-server
|
||||
aspell
|
||||
lldb
|
||||
(nil.overrideAttrs (_: { doCheck = false; }))
|
||||
(nil.overrideAttrs (_: {
|
||||
doCheck = false;
|
||||
}))
|
||||
nixfmt-rfc-style
|
||||
python3
|
||||
]
|
||||
|
|
|
@ -21,7 +21,7 @@ def is-i3 [] {
|
|||
}
|
||||
|
||||
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 {
|
||||
$result
|
||||
} else {
|
||||
|
@ -48,4 +48,4 @@ def main [] {
|
|||
print (workspaces | to json -r)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -176,6 +176,9 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
home.packages = [ pkgs.git-credential-manager ];
|
||||
home.packages = [
|
||||
pkgs.git-credential-manager
|
||||
pkgs.gitu
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ in
|
|||
|
||||
register ${pkgs.nushellPlugins.query}/bin/nu_plugin_query
|
||||
register ${pkgs.nushellPlugins.formats}/bin/nu_plugin_formats
|
||||
register ${pkgs.nushellPlugins.net}/bin/nu_plugin_net
|
||||
|
||||
use kink.nu
|
||||
|
||||
|
@ -45,6 +44,7 @@ in
|
|||
$env.config = ($env.config | merge { color_config: (dracula)})
|
||||
'';
|
||||
};
|
||||
# register ${pkgs.nushellPlugins.net}/bin/nu_plugin_net
|
||||
|
||||
carapace = {
|
||||
enable = true;
|
||||
|
|
|
@ -83,7 +83,7 @@ in
|
|||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
rnix-lsp
|
||||
nil
|
||||
shellcheck
|
||||
];
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@ let
|
|||
|
||||
iosevka-buildplans = builtins.fromTOML (builtins.readFile "${pkgs.iosevka.src}/build-plans.toml");
|
||||
iosevka-aile = pkgs.iosevka.override {
|
||||
privateBuildPlan = iosevka-buildplans.buildPlans.iosevka-aile;
|
||||
privateBuildPlan = iosevka-buildplans.buildPlans.IosevkaAile;
|
||||
set = "aile";
|
||||
};
|
||||
in
|
||||
|
|
|
@ -44,4 +44,5 @@ _final: prev: {
|
|||
|
||||
incus-ui = prev.pkgs.callPackage ../pkgs/incus-ui { };
|
||||
openfga = prev.pkgs.callPackage ../pkgs/openfga { };
|
||||
gitu = prev.pkgs.callPackage ../pkgs/gitu { };
|
||||
}
|
||||
|
|
46
pkgs/gitu/default.nix
Normal file
46
pkgs/gitu/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -177,9 +177,11 @@ in
|
|||
home = {
|
||||
username = "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 =
|
||||
with pkgs;
|
||||
|
@ -229,10 +231,10 @@ in
|
|||
pass
|
||||
pavucontrol
|
||||
povray
|
||||
quintom-cursor-theme
|
||||
procs
|
||||
prusa-slicer
|
||||
qgis
|
||||
quintom-cursor-theme
|
||||
remmina
|
||||
ripgrep
|
||||
scid-vs-pc
|
||||
|
@ -246,6 +248,8 @@ in
|
|||
unzip
|
||||
vial
|
||||
xdg-utils
|
||||
wineWowPackages.waylandFull
|
||||
winetricks
|
||||
wl-clipboard
|
||||
zeal
|
||||
]
|
||||
|
|
|
@ -43,12 +43,10 @@ let
|
|||
let
|
||||
output = if name == "right" then "DP-1" else "DP-3";
|
||||
in
|
||||
builtins.map
|
||||
(ws: {
|
||||
inherit output;
|
||||
workspace = toString ws;
|
||||
})
|
||||
workspaces
|
||||
builtins.map (ws: {
|
||||
inherit output;
|
||||
workspace = toString ws;
|
||||
}) workspaces
|
||||
)
|
||||
|
||||
(builtins.partition (n: (trivial.mod n 2) != 0) (lists.range 1 10))
|
||||
|
@ -233,9 +231,9 @@ in
|
|||
username = "erwin";
|
||||
homeDirectory = "/home/erwin";
|
||||
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 =
|
||||
with pkgs;
|
||||
|
|
Loading…
Add table
Reference in a new issue