add attic

This commit is contained in:
Artemis Tosini 2024-03-11 18:38:30 +00:00
parent fe115c9105
commit 82de1bc7bf
Signed by: artemist
GPG key ID: EE5227935FE3FF18
4 changed files with 116 additions and 16 deletions

View file

@ -1,6 +1,74 @@
{ {
"nodes": { "nodes": {
"attic": {
"inputs": {
"crane": "crane",
"flake-compat": "flake-compat",
"flake-utils": [
"utils"
],
"nix": [
"nix"
],
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1709460777,
"narHash": "sha256-KJ/3Z6t2XUW/M9KqLPKPSlKLL8L9sQBL6DSEa46TbxI=",
"owner": "nixos-bsd",
"repo": "attic",
"rev": "a963c1c5e26a5ddb63f5c830157dd060ce8bf395",
"type": "github"
},
"original": {
"owner": "nixos-bsd",
"repo": "attic",
"type": "github"
}
},
"crane": {
"inputs": {
"nixpkgs": [
"attic",
"nixpkgs"
]
},
"locked": {
"lastModified": 1709400089,
"narHash": "sha256-4A6X9xNWJ0EQhBPjM4JTdxQFDTkSqQchkNfuDWOP068=",
"owner": "ipetkov",
"repo": "crane",
"rev": "766e70fd475cd4d73bd65613d06bbb3dcbb75871",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_2": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1673956053, "lastModified": 1673956053,
@ -34,23 +102,21 @@
}, },
"nix": { "nix": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat_2",
"libgit2": "libgit2", "libgit2": "libgit2",
"nixpkgs": [ "nixpkgs": [
"nixbsd",
"nixpkgs" "nixpkgs"
], ],
"nixpkgs-regression": [ "nixpkgs-regression": [
"nixbsd",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1709952684, "lastModified": 1710003483,
"narHash": "sha256-lgJQicjZsgeMZIBW8wL6LKN+zkUdILIMEl4nzBuMPBI=", "narHash": "sha256-nhW5BDyA/YE7Cv27x9HLOlHvJGM2sX2X37tWI0tAFFM=",
"owner": "rhelmot", "owner": "rhelmot",
"repo": "nix", "repo": "nix",
"rev": "d0bd67ea27d9e3db314e8b5f4cda394ca74943a2", "rev": "213b62084006059cf07768b3e6249efce92c7e83",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -62,7 +128,9 @@
}, },
"nixbsd": { "nixbsd": {
"inputs": { "inputs": {
"nix": "nix", "nix": [
"nix"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
@ -86,11 +154,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1710114440, "lastModified": 1710114529,
"narHash": "sha256-jVHtWfPyM6hl7Xj3iKwOtTF3GuPgzYV50OkKLz0BxsA=", "narHash": "sha256-QIkIRJfiycGcOyKguwEkH9pV9b7D9NvLvduIucxirxU=",
"owner": "rhelmot", "owner": "rhelmot",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "79a0ca3025f415f6674218d7f88bb228d2ba07bb", "rev": "abba4676b872602e3a4a363b6a68e307e99cb23e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -102,6 +170,8 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"attic": "attic",
"nix": "nix",
"nixbsd": "nixbsd", "nixbsd": "nixbsd",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"utils": "utils" "utils": "utils"
@ -127,11 +197,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1709126324, "lastModified": 1710146030,
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=", "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "d465f4819400de7c8d874d50b982301f28a84605", "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -2,10 +2,23 @@
inputs = { inputs = {
nixpkgs.url = "github:rhelmot/nixpkgs/freebsd-staging"; nixpkgs.url = "github:rhelmot/nixpkgs/freebsd-staging";
utils.url = "github:numtide/flake-utils"; utils.url = "github:numtide/flake-utils";
nix = {
url = "github:rhelmot/nix/freebsd-staging";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-regression.follows = "nixpkgs";
};
nixbsd = { nixbsd = {
url = "github:nixos-bsd/nixbsd"; url = "github:nixos-bsd/nixbsd";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "utils"; inputs.utils.follows = "utils";
inputs.nix.follows = "nix";
};
attic = {
url = "github:nixos-bsd/attic";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "utils";
inputs.nix.follows = "nix";
inputs.nixpkgs-stable.follows = "nixpkgs";
}; };
}; };
@ -14,11 +27,19 @@
nixpkgs, nixpkgs,
nixbsd, nixbsd,
utils, utils,
attic,
... ...
}: }@inputs:
let let
baseDir = ./system; baseDir = ./system;
makeSystem = module: nixbsd.lib.nixbsdSystem { modules = [ module ]; }; makeSystem =
module:
nixbsd.lib.nixbsdSystem {
modules = [ module ];
specialArgs = {
inherit inputs;
};
};
in in
{ {
nixosConfigurations = nixpkgs.lib.mapAttrs (name: _: makeSystem (baseDir + "/${name}")) ( nixosConfigurations = nixpkgs.lib.mapAttrs (name: _: makeSystem (baseDir + "/${name}")) (

5
sets/attic.nix Normal file
View file

@ -0,0 +1,5 @@
{ inputs, pkgs, ... }:
{
nixpkgs.overlays = [ inputs.attic.overlays.default ];
environment.systemPackages = [ pkgs.attic-client ];
}

View file

@ -1,6 +1,9 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./boot-config.nix ]; imports = [
../../sets/attic.nix
./boot-config.nix
];
users.users.artemis = { users.users.artemis = {
isNormalUser = true; isNormalUser = true;
@ -24,6 +27,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
file file
freebsd.truss
gitMinimal gitMinimal
htop htop
hyfetch hyfetch