Merge branch 'main' of gh:greg-hellings/nixos-config
This commit is contained in:
Generated
+14
-14
@@ -25,16 +25,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1651519540,
|
"lastModified": 1654113405,
|
||||||
"narHash": "sha256-3k6p8VsTwwRPQjE8rrMh+o2AZACZn/eeYJ7ivdQ/Iro=",
|
"narHash": "sha256-VpK+0QaWG2JRgB00lw77N9TjkE3ec0iMYIX1TzGpxa4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "d93d56ab8c1c6aa575854a79b9d2f69d491db7d0",
|
"rev": "ac2287df5a2d6f0a44bbcbd11701dbbf6ec43675",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-21.11",
|
"ref": "release-22.05",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -57,27 +57,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1652881001,
|
"lastModified": 1654005557,
|
||||||
"narHash": "sha256-k9JmPCojaJnqGz4aRXXT1HZqJKHCXijoMfBAb24abXk=",
|
"narHash": "sha256-J6elwUzPoco+r5qWPHhvS2EHVWomUtNcxzkfdAQOwEU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2d474d6a4a43a0348b78db68dc00c491032cf5cf",
|
"rev": "08950a6e29cf7bddee466592eb790a417550f7f9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-21.11",
|
"ref": "nixos-22.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixunstable": {
|
"nixunstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1652794215,
|
"lastModified": 1653931853,
|
||||||
"narHash": "sha256-erVj41IcCPDWdt8CwT60ygD+SY/uhqip3RXwiESOCVk=",
|
"narHash": "sha256-O3wncIouj9x7gBPntzHeK/Hkmm9M1SGlYq7JI7saTAE=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "242efdc5a5aff8222c1152c0e4b9262bd02915b6",
|
"rev": "f1c167688a6f81f4a51ab542e5f476c8c595e457",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -89,11 +89,11 @@
|
|||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1652997257,
|
"lastModified": 1654123271,
|
||||||
"narHash": "sha256-vF4ji8t3ZgwjhGH0nrlO1n4AhsOfL7H4eGSP10BKj/k=",
|
"narHash": "sha256-xM85/VFYu8I8jZiZ7U0CmZO/98sHO7+f7PIMxQVZXCM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "4ab0b3bc0bcfa401360cac1f77a4355589c465f7",
|
"rev": "4c83235ccca7cfcf34fee9f49023f21c0e9db128",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -5,38 +5,39 @@
|
|||||||
description = "Greg's machines!";
|
description = "Greg's machines!";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
|
||||||
nixunstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixunstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-21.11";
|
url = "github:nix-community/home-manager/release-22.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs:
|
outputs = {nixpkgs, nixunstable, agenix, home-manager, nur, self}@inputs:
|
||||||
let
|
let
|
||||||
local_overlay = import ./overlays;
|
local_overlay = import ./overlays;
|
||||||
|
|
||||||
mods = hostname: [
|
mods = hostname: [
|
||||||
{ nixpkgs.overlays = [ inputs.nur.overlay local_overlay ]; }
|
{ nixpkgs.overlays = [ nur.overlay local_overlay ]; }
|
||||||
inputs.agenix.nixosModule
|
agenix.nixosModule
|
||||||
./modules
|
./modules
|
||||||
./profiles/base
|
./profiles/base
|
||||||
./hosts/${hostname}
|
./hosts/${hostname}
|
||||||
inputs.home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.greg = import ./home/home.nix "greg";
|
home-manager.users.greg = import ./home/home.nix "greg";
|
||||||
home-manager.users.root = import ./home/home.nix "root";
|
home-manager.users.root = import ./home/home.nix "root";
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
nixunstable = inputs.nixunstable;
|
inherit nixunstable;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
machine = system: name: inputs.nixpkgs.lib.nixosSystem {
|
machine = system: name: nixpkgs.lib.nixosSystem {
|
||||||
system = system;
|
inherit system;
|
||||||
specialArgs = inputs;
|
specialArgs = inputs;
|
||||||
modules = mods name;
|
modules = mods name;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.file.".ansible.cfg".text = ''
|
||||||
|
[defaults]
|
||||||
|
forks=10
|
||||||
|
host_key_checking=False
|
||||||
|
# Also available: profile_roles
|
||||||
|
callback_enabled=timer,profile_tasks
|
||||||
|
stdout_callback=yaml
|
||||||
|
nocows=1
|
||||||
|
cow_selection=tux
|
||||||
|
collections_path=~/src
|
||||||
|
|
||||||
|
[ssh_connection]
|
||||||
|
pipelining=True
|
||||||
|
ssh_args = -o ControlMaster=auto -o ControlPersist=600s -o IdentitiesOnly=yes -o GSSAPIAuthentication=no -o StrictHostKeyChecking=no
|
||||||
|
control_path=%(directory)s/%%h-%%r
|
||||||
|
control_path_dir=/tmp
|
||||||
|
|
||||||
|
[callback_profile_tasks]
|
||||||
|
sort_order=descending
|
||||||
|
|
||||||
|
[galaxy]
|
||||||
|
role_skeleton_ignore = ^.git$,^.*/.git_keep$,\..*.swp
|
||||||
|
role_skeleton = ~/src/ansible_collections/meta_ansible_templates/role
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -4,7 +4,6 @@
|
|||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
nix-direnv.enableFlakes = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -6,4 +6,8 @@
|
|||||||
./firefox.nix
|
./firefox.nix
|
||||||
./terminal.nix
|
./terminal.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
onlyoffice-bin
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,11 +13,16 @@ in with lib;
|
|||||||
{
|
{
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableGnomeExtensions = true;
|
package = pkgs.firefox-wayland.override {
|
||||||
|
cfg = {
|
||||||
|
enableGnomeExtensions = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
keepassxc-browser
|
keepassxc-browser
|
||||||
octotree
|
octotree
|
||||||
refined-github
|
refined-github
|
||||||
|
tree-style-tab
|
||||||
ublock-origin
|
ublock-origin
|
||||||
];
|
];
|
||||||
profiles = {
|
profiles = {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ let
|
|||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./modules
|
./modules
|
||||||
|
./ansible.nix
|
||||||
./bash.nix
|
./bash.nix
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
@@ -18,4 +19,5 @@ in {
|
|||||||
|
|
||||||
home.username = name;
|
home.username = name;
|
||||||
home.homeDirectory = if name == "root" then "/root" else "/home/${name}";
|
home.homeDirectory = if name == "root" then "/root" else "/home/${name}";
|
||||||
|
home.stateVersion = "21.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ in {
|
|||||||
devroles = "cd ~/src/ansible_collections/devroles";
|
devroles = "cd ~/src/ansible_collections/devroles";
|
||||||
molcol = "molecule -c ../../tests/molecule.yml";
|
molcol = "molecule -c ../../tests/molecule.yml";
|
||||||
pa = "cd ~/src/packaging";
|
pa = "cd ~/src/packaging";
|
||||||
|
dirflake = "nix flake new -t github:nix-community/nix-direnv";
|
||||||
};
|
};
|
||||||
|
|
||||||
configHeader = ''
|
configHeader = ''
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
./boot.nix
|
./boot.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./podman.nix
|
./podman.nix
|
||||||
|
./printing.nix
|
||||||
./virt.nix
|
./virt.nix
|
||||||
];
|
];
|
||||||
networking.hostName = "jude";
|
networking.hostName = "jude";
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# ipp://printer.thehellings.lan:631/ - generic postscript printer
|
||||||
|
services.printing = {
|
||||||
|
enable = true;
|
||||||
|
drivers = with pkgs; [
|
||||||
|
gutenprint
|
||||||
|
gutenprintBin
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
+12
-6
@@ -12,14 +12,20 @@
|
|||||||
# Give my user access to the libvirtd process
|
# Give my user access to the libvirtd process
|
||||||
users.users.greg.extraGroups = [ "libvirtd" ];
|
users.users.greg.extraGroups = [ "libvirtd" ];
|
||||||
|
|
||||||
virtualisation.libvirtd = {
|
virtualisation = {
|
||||||
enable = true;
|
libvirtd = {
|
||||||
onBoot = "ignore"; # Do not auto-restart VMs on boot, unless they are marked autostart
|
enable = true;
|
||||||
|
onBoot = "ignore"; # Do not auto-restart VMs on boot, unless they are marked autostart
|
||||||
|
};
|
||||||
|
|
||||||
|
waydroid = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualbox.host.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.waydroid = {
|
users.extraGroups.vboxusers.members = [ "greg" ];
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.extraModprobeConfig = "options kvm_amd nested=1";
|
boot.extraModprobeConfig = "options kvm_amd nested=1";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ in {
|
|||||||
pwgen
|
pwgen
|
||||||
tmux
|
tmux
|
||||||
transcrypt
|
transcrypt
|
||||||
|
unzip
|
||||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
wget
|
wget
|
||||||
yamllint # Used in vim
|
yamllint # Used in vim
|
||||||
|
|||||||
Reference in New Issue
Block a user