migrates system shell
This commit is contained in:
parent
e72a052384
commit
eaaaf14d1e
2 changed files with 22 additions and 0 deletions
|
|
@ -6,7 +6,11 @@ in
|
||||||
flake.nixosConfigurations.dnsc-machine = inputs.nixpkgs.lib.nixosSystem {
|
flake.nixosConfigurations.dnsc-machine = inputs.nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = with config.flake.modules.nixos; [
|
modules = with config.flake.modules.nixos; [
|
||||||
|
# Modules
|
||||||
base
|
base
|
||||||
|
shell
|
||||||
|
|
||||||
|
# Machine-specific configuration
|
||||||
{
|
{
|
||||||
imports = [ ./_hardware-configuration.nix ];
|
imports = [ ./_hardware-configuration.nix ];
|
||||||
networking.hostName = hostname;
|
networking.hostName = hostname;
|
||||||
|
|
|
||||||
18
modules/shell/default.nix
Normal file
18
modules/shell/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
flake.modules.nixos.shell =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.fish.enable = true;
|
||||||
|
users.defaultUserShell = pkgs.fish;
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.darwin.shell =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.fish.enable = true;
|
||||||
|
users.defaultUserShell = pkgs.fish;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue