🔧 flakes + deploy-rs conversion

This commit is contained in:
2022-05-03 21:00:37 -04:00
parent 17931a7b7b
commit 73a072ae49
5 changed files with 141 additions and 57 deletions

View File

@ -1,14 +1,7 @@
{ config, pkgs, ... }:
let
dotfiles = builtins.fetchTarball
"https://github.com/walkah/dotfiles/archive/main.tar.gz";
in
{
{ config, pkgs, home-manager, ... }: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
<home-manager/nixos>
../../modules/coredns
../../modules/code-server
@ -52,7 +45,6 @@ in
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM8YMax7PGIrcPNIHkpuNRFgn3HJK6Wepm+ycZWO6jfR walkah@walkah-ipadpro11"
];
};
home-manager.users.walkah = import "${dotfiles}/home.nix";
system.autoUpgrade.enable = false;
environment.systemPackages = with pkgs; [ docker-compose pinentry weechat ];

View File

@ -1,14 +1,7 @@
{ pkgs, ... }:
let
dotfiles = builtins.fetchTarball
"https://github.com/walkah/dotfiles/archive/main.tar.gz";
in
{
{ pkgs, ... }: {
imports = [
./hardware-configuration.nix
./networking.nix # generated at runtime by nixos-infect
<home-manager/nixos>
../../modules/coredns
../../modules/code-server/nginx.nix
@ -47,7 +40,6 @@ in
];
};
};
home-manager.users.walkah = import "${dotfiles}/home.nix";
system.autoUpgrade.enable = false;
environment.systemPackages = with pkgs; [ ipfs-migrator ];

View File

@ -1,6 +1,6 @@
{ ... }:
{ modulesPath, ... }:
{
imports = [ <nixpkgs/nixos/modules/profiles/qemu-guest.nix> ];
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/vda";
fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
}