mirror of
https://codeberg.org/muon/home.git
synced 2026-07-03 23:49:35 +00:00
Compare commits
3 commits
6b01ee918a
...
86c3dbfa88
| Author | SHA1 | Date | |
|---|---|---|---|
| 86c3dbfa88 | |||
| 6c635de326 | |||
| 399417d93a |
9 changed files with 42 additions and 15 deletions
26
flake.lock
generated
26
flake.lock
generated
|
|
@ -233,11 +233,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772516620,
|
"lastModified": 1772845525,
|
||||||
"narHash": "sha256-2r4cKdqCVlQkvcTcLUMxmsmAYZZxCMd//w/PnDnukTE=",
|
"narHash": "sha256-Dp5Ir2u4jJDGCgeMRviHvEQDe+U37hMxp6RSNOoMMPc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "2b9504d5a0169d4940a312abe2df2c5658db8de9",
|
"rev": "27b93804fbef1544cb07718d3f0a451f4c4cd6c0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -471,11 +471,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772433332,
|
"lastModified": 1772793846,
|
||||||
"narHash": "sha256-izhTDFKsg6KeVBxJS9EblGeQ8y+O8eCa6RcW874vxEc=",
|
"narHash": "sha256-Nobd52UJijiRrKNX3FkgwUGRMjQ6J5kWq/xSUnHbWR8=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cf59864ef8aa2e178cccedbe2c178185b0365705",
|
"rev": "1a0fccf8299acc1a36f7154efd13f6d005533d09",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -538,11 +538,11 @@
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772483693,
|
"lastModified": 1772875143,
|
||||||
"narHash": "sha256-sOq/GUSR0uw1eQla0Wc5BKztPqBJBj3khd/GhaVg4xU=",
|
"narHash": "sha256-ENBRe7vCCp/SIG2WRKI2pyAxwnrc9CPuwZ4CtMu4KU4=",
|
||||||
"owner": "NotAShelf",
|
"owner": "NotAShelf",
|
||||||
"repo": "nvf",
|
"repo": "nvf",
|
||||||
"rev": "750dbfaf6eb62db8e67afc03a3ae3078bfd8f098",
|
"rev": "6681e33727409d4ccfa687de981b594110a735d6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -794,11 +794,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772517053,
|
"lastModified": 1772858378,
|
||||||
"narHash": "sha256-aBuL2TFnyBLR+t6iBlKnTWWzprXYKQQIaV0IuCSPPeE=",
|
"narHash": "sha256-VPRlTud1REOz0GPjq3XQNjk5GpH/xNbeadiul4gkPGA=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "32e9673aee2ae994ced561247918952398a3e933",
|
"rev": "42e1e9a1cb5b507789a51193113d56f8f1bb08d9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
11
flake.nix
11
flake.nix
|
|
@ -78,6 +78,17 @@
|
||||||
|
|
||||||
homeManagerModules.default = ./modules/home;
|
homeManagerModules.default = ./modules/home;
|
||||||
|
|
||||||
|
# Expose each host's HM activation package so `home-manager switch --flake .#muon@<host>`
|
||||||
|
# works without a full NixOS rebuild. Extracted from the already-evaluated
|
||||||
|
# nixosConfiguration, so osConfig remains fully populated.
|
||||||
|
homeConfigurations = nixpkgs.lib.mapAttrs' (host: nixos:
|
||||||
|
nixpkgs.lib.nameValuePair "muon@${host}" {
|
||||||
|
activationPackage = nixos.config.home-manager.users.muon.home.activationPackage;
|
||||||
|
}
|
||||||
|
) (nixpkgs.lib.filterAttrs
|
||||||
|
(_: nixos: nixos.config.home-manager.users ? muon)
|
||||||
|
inputs.self.outputs.nixosConfigurations);
|
||||||
|
|
||||||
colmena = {
|
colmena = {
|
||||||
meta = {
|
meta = {
|
||||||
nixpkgs = import inputs.nixpkgs {inherit system;};
|
nixpkgs = import inputs.nixpkgs {inherit system;};
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ in {
|
||||||
mods.xdg.enable = true;
|
mods.xdg.enable = true;
|
||||||
mods.social.enable = true;
|
mods.social.enable = true;
|
||||||
mods.i3.enable = true;
|
mods.i3.enable = true;
|
||||||
|
mods.terminal.wezterm.enable = true;
|
||||||
|
mods.terminal.nushell.enable = true;
|
||||||
mods.terminal.zsh.enable = true;
|
mods.terminal.zsh.enable = true;
|
||||||
mods.terminal.emulator.enable = true;
|
mods.terminal.emulator.enable = true;
|
||||||
mods.terminal.development.enable = true;
|
mods.terminal.development.enable = true;
|
||||||
|
|
@ -68,6 +70,16 @@ in {
|
||||||
input.sensitivity = -0.4;
|
input.sensitivity = -0.4;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# SSH: auto-add work key to gpg-agent on first use
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
matchBlocks."*" = {
|
||||||
|
identityFile = "~/.ssh/work_ed25519";
|
||||||
|
addKeysToAgent = "yes";
|
||||||
|
};
|
||||||
|
matchBlocks."muho".identityFile = "~/.ssh/id_ed25519";
|
||||||
|
};
|
||||||
|
|
||||||
# Version of first install
|
# Version of first install
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
formatter.command = "${pkgs.nixfmt-classic}/bin/nixfmt";
|
formatter.command = "${pkgs.nixfmt}/bin/nixfmt";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "rust";
|
name = "rust";
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ in {
|
||||||
format = "on $output ";
|
format = "on $output ";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.initExtra =
|
programs.zsh.initContent =
|
||||||
''
|
''
|
||||||
export MK2_TEST_SQL_INSTANCE_USER=gijs
|
export MK2_TEST_SQL_INSTANCE_USER=gijs
|
||||||
export MK2_TEST_SQL_INSTANCE_PASSWORD="$(cat ${config.sops.secrets.google-db-test.path})"
|
export MK2_TEST_SQL_INSTANCE_PASSWORD="$(cat ${config.sops.secrets.google-db-test.path})"
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ in {
|
||||||
|
|
||||||
programs.zsh = lib.mkIf cfg.zsh.enable {
|
programs.zsh = lib.mkIf cfg.zsh.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
dotDir = "${config.xdg.configHome}/zsh";
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ in with lib; {
|
||||||
config = mkIf cfg.tools.enable {
|
config = mkIf cfg.tools.enable {
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
shellWrapperName = "y";
|
||||||
settings = {
|
settings = {
|
||||||
manager = {
|
manager = {
|
||||||
ratio = [ 1 4 3 ];
|
ratio = [ 1 4 3 ];
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
inputs.nix-alien.packages.${system}.nix-alien
|
inputs.nix-alien.packages.${system}.nix-alien
|
||||||
|
inputs.home-manager.packages.${system}.home-manager
|
||||||
colmena
|
colmena
|
||||||
];
|
];
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,6 @@ in
|
||||||
xdg.portal.extraPortals = [
|
xdg.portal.extraPortals = [
|
||||||
pkgs.xdg-desktop-portal
|
pkgs.xdg-desktop-portal
|
||||||
];
|
];
|
||||||
|
xdg.portal.config.common.default = "*";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue