Add dev shells
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -11,6 +11,7 @@ NixOS dotfiles and configuration for various hosts and users.
|
|||||||
- [`system/`](./hosts/common/system): System-level configurations and scripts.
|
- [`system/`](./hosts/common/system): System-level configurations and scripts.
|
||||||
- [`configs/`](./hosts/common/system/configs): System configurations applicable to all hosts.
|
- [`configs/`](./hosts/common/system/configs): System configurations applicable to all hosts.
|
||||||
- [`scripts/`](./hosts/common/system/scripts): Utility scripts, such as `nix-cleanup`.
|
- [`scripts/`](./hosts/common/system/scripts): Utility scripts, such as `nix-cleanup`.
|
||||||
|
- [`shells/`](./hosts/common/system/shells): Nix dev shells.
|
||||||
- [`user/`](./hosts/common/user): Per-user options.
|
- [`user/`](./hosts/common/user): Per-user options.
|
||||||
- [`configs/`](./hosts/common/user/configs): User configurations, split into:
|
- [`configs/`](./hosts/common/user/configs): User configurations, split into:
|
||||||
- [`console/`](./hosts/common/user/configs/console): Console-related settings.
|
- [`console/`](./hosts/common/user/configs/console): Console-related settings.
|
||||||
|
34
flake.lock
generated
34
flake.lock
generated
@@ -57,6 +57,24 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726560853,
|
||||||
|
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -129,6 +147,7 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"ags": "ags",
|
"ags": "ags",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
@@ -192,6 +211,21 @@
|
|||||||
"repo": "default-linux",
|
"repo": "default-linux",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
22
flake.nix
22
flake.nix
@@ -45,6 +45,10 @@
|
|||||||
url = "github:nix-community/NUR";
|
url = "github:nix-community/NUR";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flake-utils = {
|
||||||
|
url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
|
||||||
ags = {
|
ags = {
|
||||||
url = "github:Aylur/ags";
|
url = "github:Aylur/ags";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -68,7 +72,19 @@
|
|||||||
modules = [ ./hosts/eirene ];
|
modules = [ ./hosts/eirene ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
}
|
||||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
// inputs.flake-utils.lib.eachDefaultSystem (
|
||||||
};
|
system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells = {
|
||||||
|
nix = import ./hosts/common/system/shells/nix { inherit pkgs; };
|
||||||
|
python = import ./hosts/common/system/shells/python { inherit pkgs; };
|
||||||
|
};
|
||||||
|
|
||||||
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
@@ -33,5 +33,4 @@
|
|||||||
config.environment.persistence."/persist"."/var/lib/cups/printers.conf".mount
|
config.environment.persistence."/persist"."/var/lib/cups/printers.conf".mount
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
12
hosts/common/system/shells/nix/default.nix
Normal file
12
hosts/common/system/shells/nix/default.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
nix
|
||||||
|
nil
|
||||||
|
nixpkgs-fmt
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
exec $SHELL
|
||||||
|
'';
|
||||||
|
}
|
8
hosts/common/system/shells/python/default.nix
Normal file
8
hosts/common/system/shells/python/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
pkgs.mkShell {
|
||||||
|
packages = with pkgs; [ python3 ];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
exec $SHELL
|
||||||
|
'';
|
||||||
|
}
|
Reference in New Issue
Block a user